API โ€บ @builder.io/qwik-city/middleware/cloudflare-pages

createQwikCity

export declare function createQwikCity(opts: QwikCityCloudflarePagesOptions): (
  request: PlatformCloudflarePages["request"],
  env: Record<string, any> & {
    ASSETS: {
      fetch: (req: Request) => Response;
    };
  },
  ctx: PlatformCloudflarePages["ctx"]
) => Promise<Response>;
ParameterTypeDescription
optsQwikCityCloudflarePagesOptions

Returns:

(request: PlatformCloudflarePages['request'], env: Record<string, any> & { ASSETS: { fetch: (req: Request) => Response; }; }, ctx: PlatformCloudflarePages['ctx']) => Promise<Response>

Edit this section

PlatformCloudflarePages

export interface PlatformCloudflarePages
PropertyModifiersTypeDescription
ctx{ waitUntil: (promise: Promise<any>) => void; }
envRecord<string, any>
requestRequest

Edit this section

QwikCityCloudflarePagesOptions

export interface QwikCityCloudflarePagesOptions extends ServerRenderOptions

Extends: ServerRenderOptions

Edit this section