Skip to content
Merged
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
2 changes: 1 addition & 1 deletion apps/console/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"outputDirectory": "dist",
"framework": "vite",
"rewrites": [
{ "source": "/api/:path*", "destination": "https://benzo-api-dzv6bwbpba-ue.a.run.app/:path*" },
{ "source": "/api/:path*", "destination": "https://benzonet-api.benzo.space/:path*" },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Preview deployments will proxy to the live production backend

The destination URL is hardcoded to benzonet-api.benzo.space, so every Vercel preview deployment (e.g. benzo-console-git-feat-*.vercel.app) will proxy /api to the same production BenzoNet BFF. Combined with API_DOMAIN=console.benzo.space on the backend, SIWE nonce verification and auth flows will fail for any origin that isn't console.benzo.space. This means PR preview links effectively can't be used for end-to-end testing of auth-gated flows.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/console/vercel.json
Line: 7

Comment:
**Preview deployments will proxy to the live production backend**

The destination URL is hardcoded to `benzonet-api.benzo.space`, so every Vercel preview deployment (e.g. `benzo-console-git-feat-*.vercel.app`) will proxy `/api` to the same production BenzoNet BFF. Combined with `API_DOMAIN=console.benzo.space` on the backend, SIWE nonce verification and auth flows will fail for any origin that isn't `console.benzo.space`. This means PR preview links effectively can't be used for end-to-end testing of auth-gated flows.

How can I resolve this? If you propose a fix, please make it concise.

Fix in Claude Code Fix in Cursor Fix in Codex

{ "source": "/((?!api/|assets/).*)", "destination": "/index.html" }
]
}
Loading