rsnext/test/integration/serverless-runtime-configs/pages/_app.js
JJ Kasper c01534c92e
Make sure runtime config is set before any imports for serverless (#10386)
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-02 22:33:53 -05:00

10 lines
210 B
JavaScript

import getConfig from 'next/config'
const config = getConfig()
export default ({ Component, pageProps }) => (
<>
<p id="app-config">{JSON.stringify(config)}</p>
<Component {...pageProps} />
</>
)