Catch-all route · deployment / cloudflare

Deploy without a server

Cloudflare Workers Static Assets serves the export directly from its asset layer.

  1. 01

    Point assets.directory at ./dist/client.

  2. 02

    Match html_handling to the trailingSlash export policy.

  3. 03

    Use 404-page handling so the generated 404.html remains authoritative.

Read the other guide →