Skip to content

Commit

Permalink
docs: add note about performance impact of runtime env in next (#7345)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoral authored Dec 3, 2024
1 parent 0358de3 commit 47934c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/content/4.sdk/6.migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47934c8

Please sign in to comment.