ubiquitous-invention/docker/next.config.docker.ts

20 lines
527 B
TypeScript
Raw Normal View History

import type { NextConfig } from "next";
import path from "path";
/**
* Production Docker build: enables `output: "standalone"` and correct file tracing
* for the pnpm monorepo. Copied over `apps/web/next.config.ts` during `docker build`.
*/
const nextConfig: NextConfig = {
output: "standalone",
transpilePackages: ["@tasks/database", "@tasks/shared"],
outputFileTracingRoot: path.join(__dirname, "../.."),
experimental: {
serverActions: {
bodySizeLimit: "2mb",
},
},
};
export default nextConfig;