Skip to content

Commit 15af7c7

Browse files
taty2010kodiakhq[bot]ascorbic
authored
fix: added polyfill for process.env (#1889)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Matt Kane <[email protected]>
1 parent c992600 commit 15af7c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/runtime/src/templates/edge/next-dev.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { buildResponse } from '../edge-shared/utils.ts'
55

66
globalThis.NFRequestContextMap ||= new Map()
77
globalThis.__dirname = fromFileUrl(new URL('./', import.meta.url)).slice(0, -1)
8+
globalThis.process ||= { env: Deno.env.toObject() }
89

910
// Next.js uses this extension to the Headers API implemented by Cloudflare workerd
1011
if (!('getAll' in Headers.prototype)) {

0 commit comments

Comments
 (0)