Skip to content

vercel target: local execution of the bundle requires an undocumented WebSocket proxy #690

Closed

Description

@blove

Problem

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:port without 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

  1. added
    enhancement
    on Sep 17, 2026
  2. added a commit that references this issue on Sep 17, 2026
    a8a3fa7
  3. added a commit that references this issue on Sep 17, 2026
    280bdc3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions