17 lines
547 B
TypeScript
17 lines
547 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Gera .next/standalone com server.js e só as dependências necessárias (imagem Docker enxuta)
|
|
output: "standalone",
|
|
// Permite acessar o dev server pela rede local (ex.: celular), não só por localhost
|
|
allowedDevOrigins: ["192.168.18.97"],
|
|
experimental: {
|
|
serverActions: {
|
|
// Upload do PDF modelo (até 10 MB, PDF_TEMPLATE_MAX_MB em src/lib/pdf/types.ts) + folga do multipart
|
|
bodySizeLimit: "11mb",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|