mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
11 lines
316 B
JavaScript
11 lines
316 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>
|
|
<p id="env">{process.env.customVar}</p>
|
|
</div>
|
|
)
|