Skip to content

Commit

Permalink
Remove outdated docs on serverless builds and runtime configs (#15907)
Browse files Browse the repository at this point in the history
Fixes #15906

This should solve #15906. It simply removes a block that states runtime configuration for serverless builds are not supported.
  • Loading branch information
Siggnja committed Aug 5, 2020
1 parent 026785d commit abf6e74
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
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 abf6e74

Please sign in to comment.