One binary, ship anywhere
next build produces a single ./dist/app executable with every static asset, public file, and runtime chunk embedded. Copy it to a distroless image, scp it to a VM, attach it to a release — that's the deploy.A Next.js Build Adapter that compiles your app into a single-file Bun executable. One command, one binary, no runtime dependencies.
next build produces a single ./dist/app executable with every static asset, public file, and runtime chunk embedded. Copy it to a distroless image, scp it to a VM, attach it to a release — that's the deploy.bun + standalonesetups. For native deps like sharp, the runner adds the C runtime libs and you're at ~80MB total.apps/web) is handled correctly out of the box, extraction included.next.config.ts (adapterPath: "next-bun-compile"). No changes to your app code, no opinions about your routing or data layer.bun add -D next-bun-compile// next.config.ts
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
adapterPath: "next-bun-compile",
};
export default nextConfig;next build # → ./dist/app, one command
./dist/app # serves on port 3000Full walkthrough in Getting started.