fix: align next config with next 15.5.5
This commit is contained in:
parent
0cf1892256
commit
91d0608838
8 changed files with 642 additions and 510 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue