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, // Metadata (title, canonical, hreflang, Open Graph) sempre no do HTML // inicial, para qualquer cliente. Sem isso o Next 15.5 a transmite no // para navegadores e Googlebot, e só os robôs de preview a recebem no . htmlLimitedBots: /.*/, experimental: { optimizePackageImports: [ "lucide-react", ], }, images: { formats: ["image/avif", "image/webp"], }, }; export default withNextIntl(nextConfig);