yarbsemaj / sveltekit-adapter-lambda

An adapter to build a SvelteKit app into a lambda ready for deployment with lambda proxy via the Serverless Framework or CDK.
https://www.npmjs.com/package/@yarbsemaj/adapter-lambda
MIT License
77 stars 16 forks source link

How to serve static resources & dynamic content via cloudfront? #3

Closed ivands closed 2 years ago

ivands commented 2 years ago

You noted that we can use CloudFront to serve static content from S3 and dynamic content via Lambda. Could you share how the CloudFormation stack file would look? I have no idea how to setup CloudFront to do this.

yarbsemaj commented 2 years ago

Hi @ivands, i'm currently in process of simplifying the build process so that deployment can be done in one command, im hoping to have this version ready in the next few days.

yarbsemaj commented 2 years ago

@ivands This new release is now published as 0.3.1 it should now be possible to deploy with a single command to AWS as per the readme.