1aade36f13
* Add next/config * Set config on server start / client render * Add documentation for next/config * Add next/config support for next export * Fix test * Use the correct name * Set default to empty object on the client side * Add config tests * Rename config to runtimeConfig
9 lines
142 B
JavaScript
9 lines
142 B
JavaScript
let runtimeConfig
|
|
|
|
export default () => {
|
|
return runtimeConfig
|
|
}
|
|
|
|
export function setConfig (configValue) {
|
|
runtimeConfig = configValue
|
|
}
|