fix: align next config with next 15.5.5

This commit is contained in:
Esdras Renan 2025-10-16 21:39:43 -03:00
parent 0cf1892256
commit 91d0608838
8 changed files with 642 additions and 510 deletions

View file

@ -1,15 +1,9 @@
import type { NextConfig } from "next"
import { ALLOWED_HOSTS } from "./src/config/allowed-hosts"
const nextConfig = {
experimental: {
// @ts-expect-error Flag documentada mas ainda não declarada nos tipos públicos estáveis.
turbopackFileSystemCacheForDev: true,
},
// No Next 16 specific trustHostHeader flag; we whitelist via classic server.allowedHosts.
// @ts-expect-error server.allowedHosts disponível na linha 15.x
server: {
allowedHosts: [...ALLOWED_HOSTS],
},
} satisfies NextConfig
export default nextConfig