Files
api-ping/next.config.mjs
ale ed6c96c6d1 -1 values
Signed-off-by: ale <ale@manalejandro.com>
2025-08-17 00:13:33 +02:00

28 líneas
526 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
// Configuración para proxy reverso (nginx)
async headers() {
return [
{
source: '/api/:path*',
headers: [
{
key: 'X-Forwarded-Proto',
value: 'https',
},
],
},
];
},
// Configuración de paquetes externos para server components
serverExternalPackages: ['ping'],
// Configuración de red
env: {
TRUST_PROXY: 'true',
},
};
export default nextConfig;