Skip to content

Commit

Permalink
Update docs/api-reference/next.config.js/runtime-configuration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
delbaoliveira committed Nov 30, 2022
1 parent 2ebcb50 commit 7039d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-reference/next.config.js/runtime-configuration.md
Expand Up @@ -6,7 +6,7 @@ description: Add client and server runtime configuration to your Next.js app.

> Note: This feature is considered legacy and does not work with [Automatic Static Optimization](/docs/advanced-features/automatic-static-optimization.md), [Output File Tracing](/docs/advanced-features/output-file-tracing.md#automatically-copying-traced-files), or [React Server Components](/docs/advanced-features/react-18/server-components.md). Please use [environment variables](/docs/basic-features/environment-variables.md) instead in order to avoid initialization overhead.
To add runtime configuration to your app open `next.config.js` and add the `publicRuntimeConfig` and `serverRuntimeConfig` configs:
To add runtime configuration to your app, open `next.config.js` and add the `publicRuntimeConfig` and `serverRuntimeConfig` configs:

```js
module.exports = {
Expand Down

0 comments on commit 7039d65

Please sign in to comment.