mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Set default for serverRuntimeConfig (#3938)
This commit is contained in:
parent
dbb1b732a0
commit
0107051eaa
|
@ -63,7 +63,9 @@ export default class Server {
|
|||
availableChunks: dev ? {} : getAvailableChunks(this.dir, this.dist)
|
||||
}
|
||||
|
||||
const {serverRuntimeConfig, publicRuntimeConfig, assetPrefix} = this.nextConfig
|
||||
// Only serverRuntimeConfig needs the default
|
||||
// publicRuntimeConfig gets it's default in client/index.js
|
||||
const {serverRuntimeConfig = {}, publicRuntimeConfig, assetPrefix} = this.nextConfig
|
||||
|
||||
// Only the `publicRuntimeConfig` key is exposed to the client side
|
||||
// It'll be rendered as part of __NEXT_DATA__ on the client side
|
||||
|
|
Loading…
Reference in a new issue