Skip to content

postgres-storage: per-environment schema / table prefix for generated stores #682

Closed

Description

@blove

Problem

Generated Postgres stores (@b4run/postgres-storage) always write to public.b4_*. With a single Neon database attached to both the preview and production environments of one Vercel project, deployments share thread/checkpoint/permission tables unless the stores are hand-composed.

Proposal

A schema and/or tablePrefix option on the generated stores (and on the vercel target's store wiring), ideally with an environment-derived default (e.g. VERCEL_ENV), so preview and production data are namespaced out of the box.

Activity

  1. added
    enhancement
    on Sep 17, 2026
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