mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-07 12:46:30 +00:00
feat: add custom headers configuration to next.js config for stream/suspense support ✨
This commit is contained in:
@ -21,6 +21,19 @@ const nextConfig: NextConfig = {
|
||||
],
|
||||
},
|
||||
output: "standalone",
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: '/:path*{/}?',
|
||||
headers: [
|
||||
{
|
||||
key: 'X-Accel-Buffering',
|
||||
value: 'no',
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
Reference in New Issue
Block a user