Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
26 lines
850 B
JavaScript
26 lines
850 B
JavaScript
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 <head> do HTML
|
|
// inicial, para qualquer cliente. Sem isso o Next 15.5 a transmite no <body>
|
|
// para navegadores e Googlebot, e só os robôs de preview a recebem no <head>.
|
|
htmlLimitedBots: /.*/,
|
|
experimental: {
|
|
optimizePackageImports: [
|
|
"lucide-react",
|
|
],
|
|
},
|
|
images: {
|
|
formats: ["image/avif", "image/webp"],
|
|
},
|
|
};
|
|
|
|
export default withNextIntl(nextConfig);
|
|
|