chore: voltar para Next 15.5.5 e React 18
This commit is contained in:
parent
508ffe5022
commit
0cf1892256
5 changed files with 26 additions and 23 deletions
|
|
@ -1,9 +1,14 @@
|
|||
import type { NextConfig } from "next"
|
||||
import { ALLOWED_HOSTS } from "./src/config/allowed-hosts"
|
||||
|
||||
const nextConfig = {
|
||||
experimental: {
|
||||
turbopackFileSystemCacheForDev: true,
|
||||
trustHostHeader: 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue