We just <announced this on Twitter> but we are rel...
# general
j
We just announced this on Twitter but we are releasing a new
ViteStaticSite
construct. It’s a higher level CDK construct that makes it easy to create and deploy a Vite single page app. You can pass the environment variables from your backend to your frontend. And it also generates a type definition file, so your editor can autocomplete the environment variables for you! https://docs.serverless-stack.com/constructs/ViteStaticSite
We also updated the Svelte example to use this new construct. https://serverless-stack.com/examples/how-to-create-a-svelte-app-with-serverless.html
s
so much excite here