page:recipes:documentation site:react router:public site

Host documentation site with React Router: public-site delivery

Deploy a documentation site built with React Router on Ample using the public web service pattern. Compute runs the app in an isolated microVM behind a public HTTPS URL, and a published bucket serves public assets from the CDN host. Verified on React Router: a versioned, immutable-cached asset uploaded to a published bucket and served from the CDN URL alongside the app's own public HTTPS URL. Not separately tested: your site content and build; treat the documentation site-specific behavior as your application code.

Summary

Representative Queries

Infrastructure Requirements

Prerequisites

  1. A React Router project that builds and starts with the documented commands (react-router build then react-router-serve on the node-22 template).
  2. A bucket from ample bucket create with its credentials passed as encrypted S3_* environment variables.
  3. An Ample account token with servers:write, buckets:read.

Tested Configuration

Workflow Steps

  1. Build and start: react-router build then react-router-serve on the node-22 template.
  2. Wire object storage: Pass endpoint, region, bucket, and keys as --env values using path-style addressing.
  3. Deploy: Run the synchronous deploy once and read the result.
  4. Verify: Fetch the live URL and the pattern self-test route.

Success Checks

Limitations

Examples

Evidence Summary

Next Actions