Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
eltigerchino committed Jan 24, 2025
1 parent d1c954f commit e605f45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/adapter-cloudflare-workers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default function ({ config = 'wrangler.toml', platformProxy = {} } = {})
emulate() {
// we want to invoke `getPlatformProxy` only once, but await it only when it is accessed.
// If we would await it here, it would hang indefinitely because the platform proxy only resolves once a request happens
const get_emulated = (async () => {
const get_emulated = async () => {
const proxy = await getPlatformProxy(platformProxy);
const platform = /** @type {App.Platform} */ ({
env: proxy.env,
Expand All @@ -171,7 +171,7 @@ export default function ({ config = 'wrangler.toml', platformProxy = {} } = {})
});
}
return { platform, prerender_platform };
});
};

/** @type {{ platform: App.Platform, prerender_platform: App.Platform }} */
let emulated;
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-cloudflare/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function (options = {}) {
emulate() {
// we want to invoke `getPlatformProxy` only once, but await it only when it is accessed.
// If we would await it here, it would hang indefinitely because the platform proxy only resolves once a request happens
const get_emulated = (async () => {
const get_emulated = async () => {
const proxy = await getPlatformProxy(options.platformProxy);
const platform = /** @type {App.Platform} */ ({
env: proxy.env,
Expand All @@ -89,7 +89,7 @@ export default function (options = {}) {
});
}
return { platform, prerender_platform };
});
};

/** @type {{ platform: App.Platform, prerender_platform: App.Platform }} */
let emulated;
Expand Down

0 comments on commit e605f45

Please sign in to comment.