mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
8 lines
258 B
JavaScript
8 lines
258 B
JavaScript
import getConfig from 'next/config'
|
|
const {serverRuntimeConfig, publicRuntimeConfig} = getConfig()
|
|
|
|
export default () => <div>
|
|
<p id='server-only'>{serverRuntimeConfig.mySecret}</p>
|
|
<p id='server-and-client'>{publicRuntimeConfig.staticFolder}</p>
|
|
</div>
|