Commit c157eb0
committed
CI: Fix the CORS-proxy deploy by making it its own pnpm workspace root
The "Deploy CORS proxy" job has failed since the pnpm 11 move (commit ccebc3d): `wrangler: not found`, because `pnpm install` in `cors-proxy/` never populated `cors-proxy/node_modules`. That move added a repo-root `pnpm-workspace.yaml`, and pnpm 11 treats the nearest such file as the workspace root — so an install run from `cors-proxy/` walked up and installed the frontend workspace instead, leaving the proxy's own deps (including `wrangler`) uninstalled.
- Add `cors-proxy/pnpm-workspace.yaml` marking `cors-proxy/` as its own workspace root, so its `pnpm-lock.yaml` installs into `cors-proxy/node_modules`. Allow esbuild's build script (pulled in by wrangler), matching the repo-root workspace.
- Document the gotcha in `cors-proxy/CLAUDE.md`.
The live worker was unaffected (the failed deploys just didn't roll it); this restores deploys of proxy changes. Verified locally: clean `pnpm install --frozen-lockfile` now installs `wrangler 4.65.0` into `cors-proxy/node_modules` and `pnpm test` passes (14 tests).1 parent 2e342f7 commit c157eb0
2 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments