Jay
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/ViteStaticSiteJay
Jay
Sean Matheson
02/09/2022, 8:52 AM