This commit is contained in:
+16
-4
@@ -1,7 +1,19 @@
|
||||
import type { NextConfig } from "next";
|
||||
import createNextIntlPlugin from 'next-intl/plugin';
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
// Le indicamos dónde estará nuestro archivo principal de configuración
|
||||
const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts');
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
// Esta línea es la magia para Docker: empaqueta solo lo necesario
|
||||
output: "standalone" as const,
|
||||
images: {
|
||||
qualities: [75, 90, 100], // 🔥 Agrega esto
|
||||
},
|
||||
// Opcional, pero recomendado para mantener un código ultra limpio
|
||||
reactStrictMode: true,
|
||||
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
// Envolvemos la configuración con el plugin de internacionalización
|
||||
export default withNextIntl(nextConfig);
|
||||
Reference in New Issue
Block a user