We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f79d5 commit 5718b3dCopy full SHA for 5718b3d
packages/cloudflare/src/cli/templates/init.ts
@@ -94,6 +94,7 @@ function initRuntime() {
94
95
Object.assign(globalThis, {
96
Request: CustomRequest,
97
+ // This is only needed for an external middleware bundle
98
__dangerous_ON_edge_converter_returns_request: true,
99
//@ts-expect-error Inline at build time by ESBuild
100
__BUILD_TIMESTAMP_MS__: __BUILD_TIMESTAMP_MS__,
@@ -121,6 +122,7 @@ function populateProcessEnv(url: URL, env: CloudflareEnv) {
121
122
}
123
124
// Set the default Origin for the origin resolver.
125
126
process.env.OPEN_NEXT_ORIGIN = JSON.stringify({
127
default: {
128
host: url.hostname,
0 commit comments