未验证 提交 c92e8c2a 编写于 作者: J Joe Haddad 提交者: GitHub

Remove "small" wording from runtime config overhead (#7715)

Using runtime configuration can cause you to de-optimize entire classes of optimizations.
These optimizations could make your application an order of magnitude faster (i.e. prerendering).
上级 ed997b11
......@@ -1698,7 +1698,7 @@ AuthMethod({ key: process.env.CUSTOM_KEY, secret: process.env.CUSTOM_SECRET })
> **Warning:** Note that this option is not available when using `target: 'serverless'`
> **Warning:** Generally you want to use build-time configuration to provide your configuration.
> The reason for this is that runtime configuration adds a small rendering / initialization overhead.
> The reason for this is that runtime configuration adds rendering / initialization overhead.
The `next/config` module gives your app access to the `publicRuntimeConfig` and `serverRuntimeConfig` stored in your `next.config.js`.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册