22 lines
906 B
TypeScript
22 lines
906 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Not using `output: "standalone"`: its dependency tracing only follows
|
|
// what the server bundle actually imports, so it wouldn't pick up the
|
|
// Prisma CLI (invoked as a separate process to run migrations on
|
|
// container start, not imported by app code). The Dockerfile instead
|
|
// copies the full `node_modules` into the runtime image, which is a
|
|
// simpler and more reliable trade for a single self-hosted instance.
|
|
experimental: {
|
|
serverActions: {
|
|
// Default is 1 MB, which silently 413s profile-photo uploads larger
|
|
// than that before the action even runs (the client only sees a
|
|
// generic failure). Allow the profile action's 10 MB max file plus
|
|
// room for multipart overhead; other actions send tiny bodies.
|
|
bodySizeLimit: "11mb",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|