Skip to content

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.

Terminal window
cd src/docs.nri-inc.org
npm run deploy

That runs astro build and then wrangler deploy. You need to be authenticated against the Cloudflare account first:

Terminal window
npx wrangler login

To see what a deploy would do without touching the account:

Terminal window
npm run deploy:dry-run

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.

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/.