2018-02-26 12:03:27 +01:00
|
|
|
import getConfig from 'next/config'
|
2019-02-19 22:45:07 +01:00
|
|
|
const { serverRuntimeConfig, publicRuntimeConfig } = getConfig()
|
2018-02-26 12:03:27 +01:00
|
|
|
|
2019-05-30 03:19:32 +02:00
|
|
|
export default () => (
|
|
|
|
<div>
|
|
|
|
<p id='server-only'>{serverRuntimeConfig.mySecret}</p>
|
|
|
|
<p id='server-and-client'>{publicRuntimeConfig.staticFolder}</p>
|
|
|
|
<p id='env'>{process.env.customVar}</p>
|
|
|
|
</div>
|
|
|
|
)
|