From 47934c87b68753c077963afb4cc7f8f87b292656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20G=C3=B3ral?= Date: Tue, 3 Dec 2024 19:00:02 +0700 Subject: [PATCH] docs: add note about performance impact of runtime env in next (#7345) --- docs/content/4.sdk/6.migration-guide.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/content/4.sdk/6.migration-guide.md b/docs/content/4.sdk/6.migration-guide.md index ac58f34ce5..7e7fd97ece 100644 --- a/docs/content/4.sdk/6.migration-guide.md +++ b/docs/content/4.sdk/6.migration-guide.md @@ -117,6 +117,10 @@ export default MyDocument; ``` +:::warning +`__ENV.js` script is used to pass runtime environment variables to the browser. It will block rendering of the page until the script is loaded, which will slow down the page load. We recommend upgrading to the App Router and using the newest version of `next-runtime-env` to avoid this issue. +::: + 5. Update SSR cache control ```ts