Skip to content
effective-rsc
DocumentationIndex

Deploying to Vercel

Deploy to Vercel with Bun 1.4+. Match the adapter version to effective-rsc.

sh
bun add --dev @ersc/vercel

Set the build script in package.json:

json
{
  "scripts": {
    "build": "ersc build --adapter @ersc/vercel"
  }
}

Commit bun.lock, connect your GitHub repository in Vercel, and set:

SettingValue
Framework PresetOther
Root DirectoryApplication directory
Install Commandbun install --frozen-lockfile
Build Commandbun run --bun build
Output DirectoryLeave the override disabled

Add your environment variables and deploy. The adapter generates .vercel/output/; no custom server entry or vercel.json is needed.

For monorepos, enable Include source files outside of the Root Directory in the Build Step. With Turborepo, use bun run --bun turbo run build --filter=your-app to build the app and its workspace dependencies.