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>;
Parameter | Type | Description |
---|---|---|
opts | QwikCityCloudflarePagesOptions |
Returns:
(request: PlatformCloudflarePages['request'], env: Record<string, any> & { ASSETS: { fetch: (req: Request) => Response; }; }, ctx: PlatformCloudflarePages['ctx']) => Promise<Response>
PlatformCloudflarePages
export interface PlatformCloudflarePages
Property | Modifiers | Type | Description |
---|---|---|---|
ctx | { waitUntil: (promise: Promise<any>) => void; } | ||
env | Record<string, any> | ||
request | Request |
QwikCityCloudflarePagesOptions
export interface QwikCityCloudflarePagesOptions extends ServerRenderOptions
Extends: ServerRenderOptions