Files
aggios.app/front-end-agency/next.config.ts
Erik Silva 2f1cf2bb2a v1.4: Segurança multi-tenant, file serving via API e UX humanizada
-  Validação cross-tenant no login e rotas protegidas
-  File serving via /api/files/{bucket}/{path} (eliminação DNS)
-  Mensagens de erro humanizadas inline (sem pop-ups)
-  Middleware tenant detection via headers customizados
-  Upload de logos retorna URLs via API
-  README atualizado com changelog v1.4 completo
2025-12-13 15:05:51 -03:00

38 lines
751 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
reactStrictMode: false, // Desabilitar StrictMode para evitar double render que causa removeChild
experimental: {
externalDir: true,
},
async rewrites() {
return {
beforeFiles: [
{
source: "/api/:path*",
destination: "http://backend:8080/api/:path*",
},
],
};
},
headers: async () => {
return [
{
source: "/api/:path*",
headers: [
{
key: "X-Forwarded-For",
value: "127.0.0.1",
},
{
key: "X-Forwarded-Host",
value: "${host}",
},
],
},
];
},
};
export default nextConfig;