Skip to content

Commit

Permalink
Removing outdated docs stating the serverless builds do not support r…
Browse files Browse the repository at this point in the history
…untime configuration
  • Loading branch information
Siggnja committed Aug 5, 2020
1 parent 026785d commit bb92ae5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/api-reference/next.config.js/runtime-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ description: Add client and server runtime configuration to your Next.js app.

> Generally you'll want to use [build-time environment variables](/docs/api-reference/next.config.js/environment-variables.md) to provide your configuration. The reason for this is that runtime configuration adds rendering / initialization overhead and is incompatible with [Automatic Static Optimization](/docs/advanced-features/automatic-static-optimization.md).
> Runtime configuration is not available when using the [`serverless` target](/docs/api-reference/next.config.js/build-target.md#serverless-target).
To add runtime configuration to your app open `next.config.js` and add the `publicRuntimeConfig` and `serverRuntimeConfig` configs:

```js
Expand Down

0 comments on commit bb92ae5

Please sign in to comment.