[KongchangAI]
· 2 min read· 1,275 words

Vercel Board Opens Up Custom Backends: Postgres First

Vercel Board Opens Up Custom Backends: Postgres First

Vercel Board SDK and CLI now support self-hosted backends, with Postgres as the first official implementation.

Vercel Board's SDK and CLI now support user-hosted backends. Self-hosted boards expose an interface fully identical to Vercel's official API, and the SDK layer abstracts away backend differences so callers don't need to know where data is stored. Postgres is the first officially supported backend, requiring vercelBlob() for files (100 MB limit per file) and vercelQueues() for scheduled tasks, with the scheduler mounted in a separate route and triggered by a queue topic via experimentalTriggers in vercel.json. Authentication uses OIDC by default and supports team members, project deployments, other projects, and GitHub Actions, with optional custom authenticate. When deploying, be sure to apply the schema, use the pooled connection URL, and upgrade to version 0.57.0+.

Vercel Board's SDK and vercel board CLI tool now support connecting to user-hosted backends. This means teams can host board data on their own infrastructure while keeping the interface fully identical to Vercel's official API. For teams concerned with data sovereignty and hybrid cloud deployments, this is a noteworthy architectural change.

Vercel Board custom backend release

How Custom Backends Work

According to the official documentation, boards running on self-hosted backends expose the same API as team boards in the Vercel API. In other words, the SDK layer abstracts away backend differences, so callers don't need to know where data is actually stored. Postgres is the first officially supported backend implementation for the SDK.

This design aligns with the industry trend toward "Bring Your Own Backend" in recent years: the platform provides a standardized frontend and protocol, while the data layer stays under user control. For organizations with compliance requirements or existing database investments, this lowers migration costs.

"Bring Your Own Backend" (BYOB) is an architectural paradigm that has emerged in the SaaS and developer tools space in recent years: the platform provides only standardized SDKs, protocols, and frontend interaction layers, while stateful components such as data persistence and file storage are deployed by users in their own cloud accounts or databases. Compared with the traditional "Bring Your Own Database" (BYOD), BYOB has a broader scope and typically also covers object storage, message queues, and scheduled jobs. The direct benefit is data sovereignty and compliance control—user data never leaves their own infrastructure; the indirect benefit is reusing existing database investments and avoiding maintaining two sets of storage for the same data. The trade-off is that users must bear operational responsibilities such as schema migrations, connection pool tuning, backups, and high availability, and the platform cannot provide end-to-end performance guarantees for self-hosted deployments.

Mounting a Postgres Backend

The official mounting approach is very straightforward. Use postgres() in an API route, along with file storage and a scheduler.

import { board } from "@vercel/board";
import { postgres } from "@vercel/board/backend-postgres";
import { vercelBlob } from "@vercel/board/backend-postgres/blob-vercel";
import { vercelQueues } from "@vercel/board/backend-postgres/scheduler-vercel";

export const scheduler = vercelQueues({ topic: "board" });
export const team = board({
  backend: postgres({
    blob: vercelBlob(),
    scheduler,
  }),
});
export const GET = team.fetch, POST = team.fetch;

This code shows three components working together: postgres() handles data persistence, vercelBlob() manages files, and vercelQueues() drives scheduled tasks. The three are combined via board() into a complete backend instance.

File Storage and Scheduled Tasks

vercelBlob() stores files in private Vercel Blob storage, with a 100 MB limit per file. vercelQueues() handles the board's timer logic, such as scheduled messages. The scheduler needs to be mounted in a separate route and triggered via a queue topic.

In the official example, the scheduler route is exported directly as a POST handler, and then experimentalTriggers is configured in vercel.json to point a queue/v2beta trigger at the board topic with retryAfterSeconds: 30. This split configuration shows that scheduling and request handling are decoupled architecturally.

Dependency Installation and Database Configuration

Using the Postgres backend requires additionally installing pg, @vercel/blob, and @vercel/queue. postgres() reads the DATABASE_URL or POSTGRES_URL environment variable, and also accepts a passed-in connectionString or pg connection pool.

Two deployment details are worth noting: the schema bundled in the package must be applied before the first deployment; and since each instance opens a connection pool of up to 10 connections, you should use the provider's pooled connection URL. The latter is especially critical in serverless environments, otherwise it's easy to exhaust database connections.

Database connection pooling in serverless environments is an easily underestimated pitfall. Traditional long-running services typically maintain a fixed-size connection pool and reuse connections, whereas serverless functions cold-start on demand and scale the number of concurrent instances elastically. If each instance establishes its own connection pool, the total number of connections grows linearly with concurrency and quickly hits Postgres's maximum connection limit. A so-called "pooled connection URL" means the database provider deploys a connection proxy (such as PgBouncer or a vendor-built proxy) in between; functions connect to the proxy rather than the database itself, and the proxy multiplexes large numbers of short-lived connections onto a small number of real connections. Most managed Postgres providers offer both a direct URL and a pooled URL, and the latter should be used in serverless scenarios. In addition, the schema must be applied manually before the first deployment—this step usually has no automated hook, so it's advisable to incorporate it into your CI pipeline or manage it with a migration tool.

Authentication and CLI Access

Callers authenticate via OIDC by default. On Vercel, team members and the project's own deployments can access it, and the authorization mechanism also allows other projects and GitHub Actions workflows to get in. If you need custom verification logic, you can pass in authenticate; when the board runs outside Vercel, you need to set url.

The CLI tool points to a self-hosted route via the --url parameter. To use the Postgres backend, you need to upgrade to @vercel/board@0.57.0 or higher.

OIDC (OpenID Connect) is an identity layer protocol built on top of OAuth 2.0 that verifies caller identity by issuing a signed ID Token with claims. In Vercel's deployment environment, each deployment receives an OIDC token issued by the platform that includes claims such as team, project, and environment, so the backend can determine which team or project a request comes from without distributing long-lived secrets, and perform fine-grained authorization accordingly. Compared with shared secrets, OIDC's advantages are that credentials are short-lived, automatically rotated, and carry structured identity information, resulting in lower leakage risk and revocation cost. The grants mechanism mentioned in the article is built on OIDC claims, used to express "who can access which board" as auditable authorization rules. When the board is deployed outside Vercel, the platform cannot automatically inject these tokens, so you need to explicitly configure the url and custom authenticate logic.

What This Means for Development Teams

From a product positioning perspective, Vercel Board is shifting from a purely managed service to an embeddable infrastructure component. For teams already using Postgres, data can stay in their existing database, reducing the operational burden of one more standalone storage system. For multi-project organizations, the combination of OIDC and grants provides finer-grained access control than shared secrets.

Note that Postgres is currently the only backend shipped with the SDK; files and scheduling remain bound to Vercel Blob and Vercel Queues. True "fully self-hosted" capability will require more backend adapters. But this opening at least shows that Vercel is willing to extend Board's boundaries beyond its own platform.

For teams evaluating this approach, it's advisable to first confirm the database connection pool configuration and schema migration process, then consider bringing scheduler-dependent features such as scheduled messages into production.

One-line Summary

Vercel Board SDK and CLI support self-hosted backends, with Postgres as the first official implementation.

Paragraph Summary

Vercel Board's SDK and CLI now support connecting to user-hosted backends. Self-hosted boards expose an interface fully identical to Vercel's official API, and the SDK layer abstracts away backend differences so callers don't need to know where data is stored. Postgres is the first officially supported backend, requiring vercelBlob() for file management (100 MB per-file limit) and vercelQueues() for scheduled tasks, with the scheduler mounted in a separate route and triggered via a queue topic through vercel.json's experimentalTriggers. Authentication uses OIDC by default, supporting team members, project deployments, other projects, and GitHub Actions, and can be customized via authenticate. When deploying, be sure to apply the schema, use the pooled connection URL, and upgrade to version 0.57.0 or higher.

#Vercel Board#custom backend#Postgres#OIDC#serverless
Share:

Related articles