1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test/integration/config/pages/next-config.js
2018-02-27 17:50:14 +01:00

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>