feat: add custom headers configuration to next.js config for stream/suspense support

This commit is contained in:
2025-07-05 21:21:08 +05:00
parent 13f0e720f4
commit 3e3b5f15db

View File

@ -21,6 +21,19 @@ const nextConfig: NextConfig = {
],
},
output: "standalone",
async headers() {
return [
{
source: '/:path*{/}?',
headers: [
{
key: 'X-Accel-Buffering',
value: 'no',
},
],
},
]
},
};
export default nextConfig;