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

9 lines
300 B
JavaScript
Raw Normal View History

import getConfig from 'next/config'
2018-02-27 16:50:14 +00:00
const {serverRuntimeConfig, publicRuntimeConfig} = getConfig()
export default () => <div>
2018-02-27 16:50:14 +00:00
<p id='server-only'>{serverRuntimeConfig.mySecret}</p>
<p id='server-and-client'>{publicRuntimeConfig.staticFolder}</p>
<p id='env'>{process.env.customVar}</p>
</div>