20 lines
802 B
TypeScript
20 lines
802 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Pin the workspace root so stray lockfiles in parent directories
|
|
// don't confuse Turbopack's project detection.
|
|
turbopack: { root: __dirname },
|
|
// The Docker image runs the self-contained .next/standalone server.
|
|
// Gated behind an env var because `next start` (systemd/local) refuses
|
|
// to run a build produced with output: "standalone".
|
|
...(process.env.NEXT_OUTPUT === "standalone" ? { output: "standalone" as const } : {}),
|
|
experimental: {
|
|
// Site-import uploads carry a whole backup in one action request;
|
|
// the default 1 MB cap is far too small. Imports themselves are
|
|
// capped at 20 MB in importSiteAction.
|
|
serverActions: { bodySizeLimit: "25mb" },
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|