Skip to content

Commit 30d5242

Browse files
committed
Fix preview build Convex site URL
1 parent db0aba1 commit 30d5242

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 2026-02-11: Fix preview deploy missing CONVEX_SITE_URL
2+
3+
- [x] Reproduce and locate the missing env var usage
4+
- [x] Update Vercel build command to set `NEXT_PUBLIC_CONVEX_SITE_URL`
5+
- [x] Summarize the fix and any required deploy env changes

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://openapi.vercel.sh/vercel.json",
3-
"buildCommand": "cd ../../packages/backend && npx convex deploy --cmd 'cd ../../apps/web && npx next build' --cmd-url-env-var-name NEXT_PUBLIC_CONVEX_URL",
3+
"buildCommand": "cd ../../packages/backend && npx convex deploy --cmd \"NEXT_PUBLIC_CONVEX_SITE_URL=$(printf %s \\\"$NEXT_PUBLIC_CONVEX_URL\\\" | sed 's/\\\\.convex\\\\.cloud/.convex.site/'); cd ../../apps/web && npx next build\" --cmd-url-env-var-name NEXT_PUBLIC_CONVEX_URL",
44
"installCommand": "pnpm install",
55
"framework": "nextjs"
66
}

0 commit comments

Comments
 (0)