mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
fix https://github.com/vercel/next.js/issues/7713#issuecomment-643632270
16 lines
383 B
JavaScript
16 lines
383 B
JavaScript
import getConfig from 'next/config'
|
|
|
|
const { serverRuntimeConfig, publicRuntimeConfig } = getConfig()
|
|
|
|
const Layout = ({ children }) => {
|
|
return (
|
|
<div>
|
|
<p id="server-runtime-config">{JSON.stringify(serverRuntimeConfig)}</p>
|
|
<p id="public-runtime-config">{JSON.stringify(publicRuntimeConfig)}</p>
|
|
<div>{children}</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Layout
|