title |
---|
\@qwik.dev/qwik-router/middleware/cloudflare-pages API Reference |
API › @qwik.dev/qwik-router/middleware/cloudflare-pages
Warning: This API is now obsolete.
Use
createQwikRouter
instead. Will be removed in V3
createQwikCity: typeof createQwikRouter;
export declare function createQwikRouter(
opts: QwikRouterCloudflarePagesOptions,
): (
request: PlatformCloudflarePages["request"],
env: PlatformCloudflarePages["env"] & {
ASSETS: {
fetch: (req: Request) => Response;
};
},
ctx: PlatformCloudflarePages["ctx"],
) => Promise<Response>;
Parameter |
Type |
Description |
---|---|---|
opts |
(request: PlatformCloudflarePages["request"], env: PlatformCloudflarePages["env"] & { ASSETS: { fetch: (req: Request) => Response; }; }, ctx: PlatformCloudflarePages["ctx"]) => Promise<Response>
export interface PlatformCloudflarePages
Property |
Modifiers |
Type |
Description |
---|---|---|---|
{ waitUntil: (promise: Promise<any>) => void; } | |||
Record<string, any> |
(Optional) | ||
Request |
Warning: This API is now obsolete.
Use
QwikRouterCloudflarePagesOptions
instead. Will be removed in V3
export type QwikCityCloudflarePagesOptions = QwikRouterCloudflarePagesOptions;
References: QwikRouterCloudflarePagesOptions
export interface QwikRouterCloudflarePagesOptions extends ServerRenderOptions
Extends: ServerRenderOptions