[ci] format

This commit is contained in:
natemoo-re 2023-08-10 15:21:42 +00:00 committed by astrobot-houston
parent ffcfcddb75
commit 0d3aa89dcf
3 changed files with 15 additions and 15 deletions

View file

@ -21,15 +21,15 @@ interface BuildConfig {
export function getAdapter(isModeDirectory: boolean): AstroAdapter {
return isModeDirectory
? {
name: '@astrojs/cloudflare',
serverEntrypoint: '@astrojs/cloudflare/server.directory.js',
exports: ['onRequest', 'manifest'],
}
name: '@astrojs/cloudflare',
serverEntrypoint: '@astrojs/cloudflare/server.directory.js',
exports: ['onRequest', 'manifest'],
}
: {
name: '@astrojs/cloudflare',
serverEntrypoint: '@astrojs/cloudflare/server.advanced.js',
exports: ['default'],
};
name: '@astrojs/cloudflare',
serverEntrypoint: '@astrojs/cloudflare/server.advanced.js',
exports: ['default'],
};
}
const SHIM = `globalThis.process = {

View file

@ -28,7 +28,7 @@ export type PagesRuntime<T = unknown, U = unknown> = {
* ```diff
* - import { getRuntime } from '@astrojs/cloudflare/runtime';
* - getRuntime(Astro.request);
*
*
* + const runtime = Astro.locals.runtime;
* ```
*/

View file

@ -13,12 +13,12 @@ type Env = {
};
interface WorkerRuntime {
runtime: {
waitUntil: (promise: Promise<any>) => void;
env: Env;
cf: CFRequest['cf'];
caches: typeof caches;
};
runtime: {
waitUntil: (promise: Promise<any>) => void;
env: Env;
cf: CFRequest['cf'];
caches: typeof caches;
};
}
export function createExports(manifest: SSRManifest) {