- 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
38 lines
751 B
TypeScript
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;
|