Skip to content

Commit 2d1744c

Browse files
committed
chore: assign config env to process.env
1 parent fb76b06 commit 2d1744c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/templates/getHandler.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ const makeHandler = (conf: NextConfig, app, pageRoot, staticManifest: Array<[str
4848
// This is our flag that we use when patching the source
4949
// eslint-disable-next-line no-underscore-dangle
5050
process.env._BYPASS_SSG = 'true'
51-
51+
for (const [key, value] of Object.entries(conf.env)) {
52+
process.env[key] = String(value)
53+
}
5254
// Set during the request as it needs the host header. Hoisted so we can define the function once
5355
let base: string
5456

0 commit comments

Comments
 (0)