Cloudflare Workers deployment
Cloudflare Workers deployment
Section titled “Cloudflare Workers deployment”You create the Worker and connect Git in the Cloudflare dashboard. These fields match the repository configuration.
Connect to Git
Section titled “Connect to Git”- Open Workers & Pages and create a Worker.
- Choose Connect to Git.
- Select
PlutoKeating/Project.UltraCode. - Use
mainas the production branch.
Build fields
Section titled “Build fields”| Field | Value |
|---|---|
| Root directory | website |
| Build command | bun run build |
| Build output directory | dist |
| Deploy command | bunx wrangler deploy |
| Install command | bun install --frozen-lockfile |
| Bun version | 1.3.14 (if the UI exposes this field) |
If the UI only exposes build and deploy commands, keep its default install behavior. wrangler.jsonc already points Static Assets at ./dist.
No Worker script required
Section titled “No Worker script required”Astro emits a static site. Cloudflare serves dist directly, including install.sh as a static text file.
Previews and channels
Section titled “Previews and channels”Pull requests can create preview builds. main deploys the production site. Next is a documentation channel and does not require another Worker.
Custom domain
Section titled “Custom domain”The production site is https://project-ultracode.williamhvollita.workers.dev. For a custom domain, configure Worker Custom Domains and DNS, then update the Astro site value and installation examples together.
Local verification
Section titled “Local verification”cd websitebun installbun run buildbunx wrangler deploy --dry-runYou perform Cloudflare authentication yourself; this project never reads those credentials.