rsnext/test/integration/serverless-runtime-configs/pages/api/config.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

7 lines
117 B
JavaScript

import getConfig from 'next/config'
const config = getConfig()
export default (req, res) => {
res.json(config)
}