Commit 875799b
committed
ci(web): run wrangler via pnpm dlx so env vars expand
cloudflare/wrangler-action v3 passes its 'command' input to wrangler
without shell expansion, so $DEPLOY_BRANCH ended up being the literal
branch name on every deploy. All deploys landed in a preview slot called
'$DEPLOY_BRANCH' instead of 'develop', leaving wheels-*.pages.dev
production URLs empty and blog/guides/api subdomains returning 404.
Swap to a plain 'run:' step that invokes wrangler via pnpm dlx, with
env vars routed through the shell properly. Same security posture for
untrusted branch names (quoted env expansion, not command interpolation).1 parent a5d72d0 commit 875799b
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments