API › @qwik.dev/router/middleware/aws-lambda

createQwikCity

Warning: This API is now obsolete.

Use createQwikRouter instead. Will be removed in V3

createQwikCity: typeof createQwikRouter;

Edit this section

createQwikRouter

export declare function createQwikRouter(
  opts: AwsOpt,
): QwikRouterAwsLambdaMiddleware;

Parameter

Type

Description

opts

AwsOpt

Returns:

QwikRouterAwsLambdaMiddleware

Edit this section

PlatformAwsLambda

export interface PlatformAwsLambda extends Object

Extends: Object

Edit this section

QwikCityAwsLambdaOptions

Warning: This API is now obsolete.

Use QwikRouterAwsLambdaOptions instead. Will be removed in V3

export type QwikCityAwsLambdaOptions = QwikRouterAwsLambdaOptions;

References: QwikRouterAwsLambdaOptions

Edit this section

QwikRouterAwsLambdaMiddleware

export interface QwikRouterAwsLambdaMiddleware

Property

Modifiers

Type

Description

fixPath

(pathT: string) => string

handle

(req: any, res: any) => void

notFound

(req: IncomingMessage | Http2ServerRequest, res: ServerResponse, next: (e?: any) => void) => Promise<void>

router

(req: IncomingMessage | Http2ServerRequest, res: ServerResponse, next: NodeRequestNextFunction) => Promise<void>

staticFile

(req: IncomingMessage | Http2ServerRequest, res: ServerResponse, next: (e?: any) => void) => Promise<void>

Edit this section

QwikRouterAwsLambdaOptions

export interface QwikRouterAwsLambdaOptions extends ServerRenderOptions

Extends: ServerRenderOptions

Edit this section