Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-08-16 23:59:05 +02:00
padre 6133e1b3d4
commit 0c795faf47
Se han modificado 7 ficheros con 638 adiciones y 13 borrados

Ver fichero

@@ -1,4 +1,29 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
// Configuración para proxy reverso (nginx)
async headers() {
return [
{
source: '/api/:path*',
headers: [
{
key: 'X-Forwarded-Proto',
value: 'https',
},
],
},
];
},
// Configuración experimental para mejorar el manejo de headers
experimental: {
serverComponentsExternalPackages: ['ping'],
},
// Configuración de red
env: {
TRUST_PROXY: 'true',
},
};
export default nextConfig;