Skip to content

CLI: Deploy Frontend Pages

Deploy the core frontend apps only: apps/web and apps/admin.

In Cloudflare Dashboard → Workers & Pages:

  1. Create a Pages project for web
  2. Create a Pages project for admin

Keep the names web and admin to match environment variables and docs.

apps/web uses Astro with @astrojs/cloudflare and deploys as a Worker with static assets.

Terminal window
cd apps/web
pnpm run build
npx wrangler deploy
cd ../..

Or if the project uses wrangler.toml with a name that maps to a Pages project, follow the project’s deploy script.

apps/admin uses Nuxt. Build and deploy to Cloudflare Pages:

Terminal window
cd apps/admin
pnpm run build
npx wrangler pages deploy .output/public --project-name=admin
cd ../..

Or use the project’s configured deploy command (e.g. pnpm run deploy if defined).

After deployment, configure Pages environment variables in Cloudflare Dashboard:

  • Backend service URLs (e.g. AUTH_SERVICE_URL, SUPPORT_SERVICE_URL, etc.)
  • app_key (use demo for first run)
  • Any other required public vars

If you see a SESSION binding warning, the expected KV binding may not be configured. Check:

  • Wrangler/Pages binding configuration
  • Whether the target environment matches what you prepared
  • Both Pages projects exist
  • apps/web deployed
  • apps/admin deployed
  • Critical environment variables set