API โบ @qwik.dev/qwik-router/middleware/netlify-edge
createQwikCity
Warning: This API is now obsolete.
Use
createQwikRouter
instead. Will be removed in V3
createQwikCity: typeof createQwikRouter;
createQwikRouter
export declare function createQwikRouter(
opts: QwikRouterNetlifyOptions,
): (request: Request, context: Context) => Promise<Response>;
Parameter
Type
Description
opts
(request: Request, context: Context) => Promise<Response>
PlatformNetlify
export interface PlatformNetlify extends Partial<Omit<Context, 'next' | 'cookies'>>
Extends: Partial<Omit<Context, 'next' | 'cookies'>>
QwikCityNetlifyOptions
Warning: This API is now obsolete.
Use
QwikRouterNetlifyOptions
instead. Will be removed in V3
export type QwikCityNetlifyOptions = QwikRouterNetlifyOptions;
References: QwikRouterNetlifyOptions
QwikRouterNetlifyOptions
export interface QwikRouterNetlifyOptions extends ServerRenderOptions
Extends: ServerRenderOptions