/* * WHAT IS THIS FILE? * * It's the entry point for Aws Lambda when building for production. * * Learn more about the Aws Lambda integration here: * - https://qwik.dev/docs/deployments/aws/ * */ import "source-map-support/register"; import serverless from "serverless-http"; import { createQwikCity, type PlatformAwsLambda, } from "@builder.io/qwik-city/middleware/aws-lambda"; import qwikCityPlan from "@qwik-city-plan"; import render from "./entry.ssr"; declare global { type QwikCityPlatform = PlatformAwsLambda; } export const { handle } = createQwikCity({ render, qwikCityPlan }); export const qwikApp = serverless({ handle }, { binary: true }); // handler is the default export for the lambda functions export const handler = qwikApp;