Skip to content

Instantly share code, notes, and snippets.

@nc9
Last active December 10, 2025 04:18
Show Gist options
  • Select an option

  • Save nc9/78dd528ba9cc691a8e864cdf6ada2c3a to your computer and use it in GitHub Desktop.

Select an option

Save nc9/78dd528ba9cc691a8e864cdf6ada2c3a to your computer and use it in GitHub Desktop.
vercel bun runtime setup with nextjs

enables vercel bun runtime with fluid compute for nextjs

note the dev and build run script in package.json

set the vercel.json file in project root and update the package.json run entry points for dev and build

{
"name": "platform",
"version": "0.1.15",
"private": true,
"scripts": {
"dev": "bun run --bun next dev --turbopack",
"build": "bun run --bun next build",
"start": "next start",
"lint": "biome lint --write src/",
"format": "biome format --write src/",
"db:sync": "drizzle-kit pull",
"db:sync:check": "drizzle-kit pull --dry-run"
}
}
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"bunVersion": "1.x",
"framework": "nextjs",
"buildCommand": "bun run build",
"installCommand": "bun install",
"fluid": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment