diff --git a/next.config.ts b/next.config.ts index 7d8d4d0..6ea7e78 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,10 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - output: "standalone", + // `standalone` exists for the Docker image, which copies `.next/standalone` + // and runs `node server.js`. Vercel builds its own output and does not want + // it, so opt out there via the `VERCEL` build env var. + output: process.env.VERCEL ? undefined : "standalone", reactStrictMode: true, typedRoutes: true, // Pin the workspace root so it can never be inferred outside this repo.