AWS Adapter
Qwik Router AWS Adapter allows you to connect Qwik Router to AWS Lambda.
Installation
To integrate the aws-lambda adapter, use the add command:
pnpm run qwik add aws-lambdanpm run qwik add aws-lambdayarn run qwik add aws-lambdabun run qwik add aws-lambdaThe adapter will add a new vite.config.mts within the adapters/ directory, and a new entry file will be created, such as:
βββ adapters/
βββ aws-lambda
βββ vite.config.mts
βββ src/
βββ entry_aws-lambda.tsx
Additionally, within the package.json, the build.server and serverless:preview scripts will be updated.
Production build
To build the application for production, use the build command, this command will automatically run build.server and build.client:
pnpm run buildnpm run buildyarn run buildbun run buildDeploy to AWS
Before deployment, you need to set up your AWS Credentials. Under the hood, the adapter uses serverless.
serverless deploy
Done!