rsnext/test/integration/env-config/app/next.config.js
JJ Kasper fafa16f350
Bundle env configs in serverless mode (#13406)
As discussed this adds bundling of `.env` files in `serverless` mode so that the environment values are also available when deploying with this target

closes: https://github.com/zeit/next.js/issues/13332
2020-05-26 19:01:57 +00:00

14 lines
254 B
JavaScript

module.exports = {
// update me
experimental: {
async redirects() {
return [
{
source: '/hello',
permanent: false,
destination: `/${process.env.NEXT_PUBLIC_TEST_DEST}`,
},
]
},
},
}