You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vercel target: local execution of the bundle requires an undocumented WebSocket proxy #690
Running the built Vercel bundle locally (e.g. to test the artifact offline) requires a WebSocket proxy, because the generated store uses @neondatabase/serverless, which cannot talk to a plain local Postgres. The proxy is configured via B4_PG_WS_PROXY, whose value must be host:portwithout a scheme — neither the variable nor the format is documented, and a ws://host:port value fails with an unhelpful error.
Proposal
Document B4_PG_WS_PROXY and its expected format (or accept both forms).
Better: on the vercel target, fall back to a pooled pg connection when the DATABASE_URL host is not Neon (or when B4_PG_DRIVER=pg), so the artifact is testable against local Postgres with no proxy.
Activity
feat(cli): let the vercel bundle reach plain Postgres without a WebSo…
Merge main and rewrite local testing for the pg driver fallback