Deploying the docs site
This page covers this documentation site only. For the CMS and the public website, see Deploying Umbraco.
The site is a static build served by a Cloudflare Worker using
static assets — there
is no Worker script, so wrangler.jsonc has no main entry. Cloudflare serves
dist/ directly.
Deploy
Section titled “Deploy”cd src/docs.nri-inc.orgnpm run deployThat runs astro build and then wrangler deploy. You need to be authenticated
against the Cloudflare account first:
npx wrangler loginTo see what a deploy would do without touching the account:
npm run deploy:dry-runConfiguration
Section titled “Configuration”wrangler.jsonc holds everything:
| Setting | Value |
|---|---|
| Worker name | docs |
| Account ID | 6e62a7dc4b6c5726a844a0e0a5d88cb5 |
| Assets | ./dist |
| workers.dev URL | docs.nri-inc.workers.dev |
| Custom domain | docs.nri-inc.org |
The workers.dev hostname is <worker-name>.<account-subdomain>.workers.dev, so
the Worker is named docs under the nri-inc account subdomain. Worker names
cannot contain dots.
not_found_handling is set to 404-page, so Astro’s generated 404.html is
served for unknown paths rather than a bare Cloudflare error.
Local preview of the deployed shape
Section titled “Local preview of the deployed shape”npm run preview runs wrangler dev, which serves dist/ through the same
Workers runtime and asset router used in production. Build first — it serves
whatever is currently in dist/.