### Deliver public assets through CDN for React Router

Cdn assets for a React Router app on Ample. Verified on React Router: a versioned, immutable-cached asset uploaded to a published bucket and served from the CDN URL. Build and start: react-router build then react-router-serve on the node-22 template.

#### Summary
Deliver public assets through CDN for React Router.

#### Representative Queries
- Deliver public assets through CDN for React Router
- Where can I host Deliver public assets through CDN built with React Router?
- I need a public-origin configuration, versioned asset build and observable cache behavior.

#### Resource Requirements
- primitive:compute
- primitive:cdn

#### Infrastructure Requirements
- **Compute**: Apps run in isolated x86_64 Firecracker microVMs that auto-pause when idle and wake on request; sizes are the priced VM sizes.
- **CDN**: The CDN host serves objects from published buckets. It does not front app compute and is not a cache or key-value store.

#### Framework
React Router

#### Workload
Deliver public assets through CDN

#### Release Status
published
#### Support Status
verified
#### Execution Status
ready
#### Prerequisites
- A React Router project (react-router build then react-router-serve on the node-22 template)
- A bucket from `ample bucket create` with credentials passed as encrypted S3_* environment variables
- An Ample account token with servers:write, buckets:read

#### Tested Configuration
- **Template**: node-22
- **Runtime**: node
- **Size**: s-1vcpu-1gb
- **Install**: npm install
- **Build**: npm run build --if-present
- **Start**: npm run start

#### Workflow Steps
1. **Build and start**: react-router build then react-router-serve on the node-22 template; server must bind 0.0.0.0 on PORT.
2. **Publish a bucket for public assets**: Publish only the asset bucket; upload versioned keys with an immutable Cache-Control header and build URLs from its public URL. Command: `ample bucket publish`
3. **Verify**: Fetch the live URL and /p/versioned-static-assets on the example; on failure read the build and runtime logs. Command: `ample logs --kind build`

#### Examples
- **React Router pattern fixture**: Verified CDN assets on React Router.

#### Limitations
- Verified on the node-22 template at s-1vcpu-1gb; other sizes and React Router major versions are not verified.
- Region, compliance attestations and request-duration limits are unknown and not claimed.
- The CDN serves published-bucket objects only; cache rules, purge and TTL control are not verified.

#### Cost Estimate
- **Currency**: USD
- **Monthly Amount**: 5.0
- **Basis**: size prices from pricing.toml (loaded by the API) at build revision 1ac5595375130d45290090e82ed0f554ccd45405-dirty
- **Components**:
  - **App Server**: size s-1vcpu-1gb, quantity 1.0, monthly amount 5.0  
- **Note**: Always-on monthly price of the tested sizes; apps auto-pause when idle. Buckets are allocation-priced per quota and not included.

#### Next Actions
- **Browse the catalog index**: actionId: browse-catalog
- **Search published recipes by intent, stack and constraints**: actionId: search-recipes
- **Prepare a side-effect-free deployment plan for an authorized project**: actionId: plan:page:guides:react-router:cdn-assets
