An adapter to build a SvelteKit app into a lambda ready for deployment with lambda proxy via the Serverless Framework or CDK.
The adapter-lambda
is a tool that allows users to build a SvelteKit app into a lambda function that is ready for deployment with lambda proxy via the Serverless framework. It provides a seamless way to deploy SvelteKit apps on AWS Lambda and access them through a CloudFront distribution. It also utilizes S3 for serving static assets and precompiled pages.
To install the adapter-lambda
, follow these steps:
serverless.yml
file from the root of the repository to the root of your project.serverless.yml
file to match your project.svelte.config.js
file, configure the adapter as shown below:import adapter from 'adapter-lambda';
export default {
kit: {
adapter: adapter(),
},
};
sls deploy
to deploy the code to AWS using the Serverless framework.The adapter-lambda
is a useful tool for building and deploying SvelteKit apps on AWS Lambda. It provides seamless integration with the Serverless framework and allows easy access to the app through a CloudFront distribution. With its support for serving static assets and precompiled pages using S3 and Lambda@edge, it offers a comprehensive solution for hosting SvelteKit apps on AWS. If you encounter any issues, the developer recommends raising them on Github for prompt assistance.