| title |
|---|
\@builder.io/qwik-city/middleware/aws-lambda API Reference |
API › @builder.io/qwik-city/middleware/aws-lambda
export declare function createQwikCity(opts: AwsOpt): {
fixPath: (pathT: string) => string;
router: (
req: import("http").IncomingMessage | import("http2").Http2ServerRequest,
res: import("http").ServerResponse<import("http").IncomingMessage>,
next: import("@builder.io/qwik-city/middleware/node").NodeRequestNextFunction,
) => Promise<void>;
staticFile: (
req: import("http").IncomingMessage | import("http2").Http2ServerRequest,
res: import("http").ServerResponse<import("http").IncomingMessage>,
next: (e?: any) => void,
) => Promise<void>;
notFound: (
req: import("http").IncomingMessage | import("http2").Http2ServerRequest,
res: import("http").ServerResponse<import("http").IncomingMessage>,
next: (e: any) => void,
) => Promise<void>;
handle: (req: any, res: any) => void;
};|
Parameter |
Type |
Description |
|---|---|---|
|
opts |
AwsOpt |
Returns:
{ fixPath: (pathT: string) => string; router: (req: import("http").IncomingMessage | import("http2").Http2ServerRequest, res: import("http").ServerResponse<import("http").IncomingMessage>, next: import("@builder.io/qwik-city/middleware/node").NodeRequestNextFunction) => Promise<void>; staticFile: (req: import("http").IncomingMessage | import("http2").Http2ServerRequest, res: import("http").ServerResponse<import("http").IncomingMessage>, next: (e?: any) => void) => Promise<void>; notFound: (req: import("http").IncomingMessage | import("http2").Http2ServerRequest, res: import("http").ServerResponse<import("http").IncomingMessage>, next: (e: any) => void) => Promise<void>; handle: (req: any, res: any) => void; }
export interface PlatformAwsLambda extends ObjectExtends: Object
export interface QwikCityAwsLambdaOptions extends ServerRenderOptionsExtends: ServerRenderOptions