Skip to content

Commit 90b0a86

Browse files
authored
Update packages/adapter-cloudflare/index.js
1 parent 9173bbe commit 90b0a86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/adapter-cloudflare/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ export default function (options = {}) {
145145
}
146146
},
147147
emulate() {
148-
// we want to invoke `getPlatformProxy` only once and await it only when it is accessed
148+
// we want to invoke `getPlatformProxy` only once, but await it only when it is accessed.
149+
// If we would await it here, it would hang indefinitely because the platform proxy only resolves once a request happens
149150
const getting_platform = (async () => {
150151
const proxy = await getPlatformProxy(options.platformProxy);
151152
const platform = /** @type {App.Platform} */ ({

0 commit comments

Comments
 (0)