Substitui o build via Nixpacks (lento, sem cache de deps) por um Dockerfile multi-stage com output: 'standalone'. O stage de deps fica em cache e só reinstala quando package*.json muda; imagem final enxuta roda node server.js. Trocar o build pack do Coolify para Dockerfile. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
9 lines
282 B
TypeScript
9 lines
282 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Gera .next/standalone com só o necessário — imagem Docker bem menor e
|
|
// deploy mais rápido (não precisa instalar node_modules no runtime).
|
|
output: 'standalone',
|
|
};
|
|
|
|
export default nextConfig;
|