mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
* Update `packages/` * Update examples * Update tests * Update bench * Update top level files * Fix build * trigger
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>
|
|
)
|