Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Every change, from a person or an AI agent, follows the same path:
| Setting | Value |
|---|---|
| Root directory | repo root |
| Build command | `pnpm install --frozen-lockfile && pnpm test && pnpm --filter website build` |
| Build command | optional: `apps/website/wrangler.jsonc` has a `build.command` that installs, builds the site and runs the post-build checks before every deploy and preview |
| Deploy command | `pnpm --filter website exec wrangler deploy` |
| Other branches | `pnpm --filter website exec wrangler versions upload` (a preview URL per branch) |
| Other branches | `npx wrangler preview` (Cloudflare's default; gives each branch a preview URL, and needs the `previews` block in `wrangler.jsonc`) |

Node comes from `.nvmrc` and pnpm from `packageManager` in `package.json`. A failing test or post-build check stops the deploy.

Expand Down
10 changes: 9 additions & 1 deletion apps/website/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"main": "worker/index.ts",
"compatibility_date": "2026-10-28",
"workers_dev": true,
// Wrangler builds the site before every deploy and preview, so CI needs no separate build step.
// `pnpm install` is a no-op when dependencies are already installed.
"build": {
"command": "pnpm install --frozen-lockfile && pnpm run build"
},
// Static assets are served first; the Worker only runs when no asset matches.
"assets": {
"directory": "./dist",
Expand All @@ -12,5 +17,8 @@
},
// www.jscebu.org is attached as a Workers Custom Domain (Cloudflare manages its DNS
// record and certificate). The apex jscebu.org still redirects to www via Vercel.
"routes": [{ "pattern": "www.jscebu.org", "custom_domain": true }]
"routes": [{ "pattern": "www.jscebu.org", "custom_domain": true }],
// Required by `wrangler preview`, which Workers Builds runs for non-production branches.
// Empty: previews reuse the top-level assets and compatibility settings, and get no routes.
"previews": {}
}
Loading