Files
csf-web/next.config.mjs
2025-09-20 18:42:04 +02:00

50 líneas
974 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
// Configuración para Docker
output: 'standalone',
// Configuración de imágenes
images: {
unoptimized: true
},
// Variables de entorno públicas
env: {
CUSTOM_KEY: process.env.CUSTOM_KEY,
},
// Configuración de headers de seguridad
async headers() {
return [
{
source: '/(.*)',
headers: [
{
key: 'X-Frame-Options',
value: 'DENY'
},
{
key: 'X-Content-Type-Options',
value: 'nosniff'
},
{
key: 'X-XSS-Protection',
value: '1; mode=block'
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin'
}
]
}
]
},
// Configuración para desarrollo
experimental: {
serverComponentsExternalPackages: []
}
};
export default nextConfig;