Web development
Can Vercel Board run on your own Postgres backend?
Vercel says the Board SDK and CLI can use a backend you supply, with Postgres first. What the setup needs: blob storage, queues, a schema, pooled connections and auth.
The short answer
Yes, according to Vercel. The company says the Board SDK and the vercel board command can now use a backend you bring, and Postgres is the first backend that ships with the SDK. Using it requires @vercel/board version 0.57.0 or later.
Vercel also says a board on your own backend serves the same API as your team's board in Vercel's API. That is the vendor's claim about compatibility; I would confirm it against the calls your own code makes before relying on it.
What the Postgres backend needs besides Postgres
Vercel says the Postgres-backed board requires a blob store for files. The vercelBlob() option keeps files in a private Vercel Blob store, up to 100 MB each.
Timers are a second dependency. Vercel says vercelQueues() runs the board's timers, such as scheduled messages, on Vercel Queues. A database alone is therefore not the whole footprint: I would count the blob store and the queue as part of the backend when estimating setup work.
Schema and connections before the first deploy
Vercel tells users to apply the schema that ships with the package before the first deploy. It also says to use the provider's pooled connection URL, since each instance opens a pool of up to 10 connections.
A connection pool is a set of open database connections that an application reuses. For example, in a hypothetical setup with several concurrent instances, each holding up to 10 connections, the total can approach a database's connection limit quickly. I would check the connection limit on my plan against the expected instance count before deploying.
Who can call the board
Vercel says callers authenticate with OIDC by default. On Vercel, your team's people and the project's own deployments get in, and grants let in other projects and GitHub Actions workflows.
OIDC is a standard for proving identity with signed tokens. Vercel adds that you can pass an authenticate option to verify callers your own way. If I used the custom option, I would test both an allowed and a rejected caller, since the verification logic would then be mine.
Pointing the CLI at your route
Vercel says to point vercel board at your route with --url. That is the documented way to make the CLI talk to a board served from your own backend rather than the team board.
The announcement gives no timeline for additional backends beyond Postgres.
- Confirm the installed @vercel/board version is 0.57.0 or later.
- Apply the packaged schema and use the pooled connection URL.
- Configure the blob store and the queue option.
- Check which callers authenticate, then run the CLI with --url.
Sources
- Bring your own backend for Vercel BoardPrimary source