page:guides:fastify:cdn assets

Deliver public assets through CDN for Fastify

Summary

Cdn assets for a Fastify app on Ample. Verified on Fastify: a versioned, immutable-cached asset uploaded to a published bucket and served from the CDN URL. Build and start: npm install, npm run build --if-present, npm run start on the node-22 template.

Prerequisites

Workload

Deliver public assets through CDN

Framework

Fastify

Tested Configuration

Example

Fastify pattern fixture

Description: Verified CDN assets on Fastify.
Source Reference: tests/deploy-canaries/fastify-patterns

Success Checks

  1. Description: App responds on its public URL
    • Kind: http_get
    • Path: /
    • Expect: ample canary fastify patterns
  2. Description: Versioned-static-assets check from the example
    • Kind: http_get
    • Path: /p/versioned-static-assets
    • Expect: See the pattern fixture checks.

Limitations

Cost Estimate

Evidence Summary

Next Actions

  1. Action ID: browse-catalog
    Label: Browse the catalog index
    Operation ID: catalog_index
    Method: GET
    Relative Path: /v1/catalog
  2. Action ID: search-recipes
    Label: Search published recipes by intent, stack and constraints
    Operation ID: search_recipes
    Method: POST
    Relative Path: /v1/catalog/search
    Parameters: {"body":{"limit":5,"query":"Deliver public assets through CDN for Fastify"}}
  3. Action ID: plan:page:guides:fastify:cdn-assets
    Label: Prepare a side-effect-free deployment plan for an authorized project
    Operation ID: plan_deployment
    Method: POST
    Relative Path: /v1/catalog/plan
    Parameters: {"body":{"inputs":{},"projectId":"","recipeId":"page:guides:fastify:cdn-assets","recipeRevision":"r1"}}
  4. Action ID: auth-setup
    Label: Read the existing agent authentication setup
    Operation ID: existing_auth_setup
    Method: GET
    Relative Path: /mcp/setup