Skip to content

Commit d38f637

Browse files
committed
chore: use astro worker defaults for website deploy
1 parent c25e244 commit d38f637

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

website/DEPLOYMENT.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,22 @@ Connect the repository to a Cloudflare Worker using Git integration.
1414

1515
Recommended settings:
1616

17-
- Project name: `bub-website`
17+
- Project name: `bub`
1818
- Build command: `pnpm install --frozen-lockfile && pnpm build`
1919
- Deploy command: `pnpm wrangler deploy`
2020
- Path: `website`
2121
- Environment variable: `SITE_URL=https://bub.build`
2222
- Environment variable: `NODE_VERSION=22.16.0`
2323

24-
The repo also includes [wrangler.jsonc](./wrangler.jsonc) so local preview and
25-
Cloudflare Workers runtime settings stay aligned:
24+
The repo keeps a minimal [wrangler.jsonc](./wrangler.jsonc) and relies on
25+
Astro/Wrangler's default Cloudflare integration for the generated Worker
26+
configuration.
2627

27-
- `main = "./node_modules/@astrojs/cloudflare/dist/entrypoints/server.js"`
28-
- `compatibility_flags = ["nodejs_compat"]`
28+
The repo also includes [public/.assetsignore](./public/.assetsignore) for the
29+
SSR Worker build:
30+
31+
- `_worker.js`
32+
- `_routes.json`
2933

3034
Production deployment is handled by Cloudflare Workers Git integration instead of
3135
GitHub Actions.

website/public/.assetsignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_worker.js
2+
_routes.json

website/wrangler.jsonc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
22
"$schema": "./node_modules/wrangler/config-schema.json",
3-
"name": "bub-website",
4-
"main": "./node_modules/@astrojs/cloudflare/dist/entrypoints/server.js",
5-
"compatibility_date": "2026-04-15",
6-
"compatibility_flags": [
7-
"nodejs_compat"
8-
]
3+
"name": "bub"
94
}

0 commit comments

Comments
 (0)