Commit b0516ea
fix: use bun --cwd to preserve environment variables in convex deploy
Changed from 'cd ../web && bun run build' to 'bun --cwd ../web run build'
to prevent environment variable loss when changing directories within
the --cmd subshell.
When using `cd` within convex deploy --cmd, the NEXT_PUBLIC_CONVEX_URL
environment variable set by Convex doesn't properly propagate to the
subshell, causing "NEXT_PUBLIC_CONVEX_URL is not configured" errors.
Using --cwd keeps the command in the same shell, preserving env vars.
Fixes: Error: NEXT_PUBLIC_CONVEX_URL is not configured in preview deployments
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 0a8527a commit b0516ea
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments