From 683d85798a77a34ad333f49f8b452849b41fbb59 Mon Sep 17 00:00:00 2001 From: i701 Date: Sat, 5 Jul 2025 21:21:08 +0500 Subject: [PATCH] =?UTF-8?q?feat:=20add=20custom=20headers=20configuration?= =?UTF-8?q?=20to=20next.js=20config=20for=20stream/suspense=20support=20?= =?UTF-8?q?=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/next.config.ts b/next.config.ts index da25007..32b8868 100644 --- a/next.config.ts +++ b/next.config.ts @@ -21,6 +21,19 @@ const nextConfig: NextConfig = { ], }, output: "standalone", + async headers() { + return [ + { + source: '/:path*{/}?', + headers: [ + { + key: 'X-Accel-Buffering', + value: 'no', + }, + ], + }, + ] + }, }; export default nextConfig;