import createNextIntlPlugin from "next-intl/plugin"; const withNextIntl = createNextIntlPlugin("./i18n/request.js"); /** @type {import('next').NextConfig} */ const nextConfig = { // A imagem Docker liga isto (NEXT_OUTPUT=standalone) para empacotar só o que // o servidor usa. Fora dela o build continua igual: `next start`/pm2. output: process.env.NEXT_OUTPUT === "standalone" ? "standalone" : undefined, experimental: { optimizePackageImports: [ "lucide-react", ], }, images: { formats: ["image/avif", "image/webp"], }, }; export default withNextIntl(nextConfig);