does anyone have any general guidance on how to se...
# help
s
does anyone have any general guidance on how to set up an SSR app with SST? so basically initial deployment would look like this: • SST creates resources to host the SSR web app (S3, API Gateway, CloudFront) • The SSR application is built/minified (whatever it is.. Nuxt, Vite, etc) • The Lambda function that sits behind API Gateway is deployed (entry point to the app + back-end SSR code) • The front-end portion of the web app is copied to S3
f
Thanks @Mayowa
@Sam Hulick two common pattern I’ve seen: • Deploy the app to S3 + CloudFront, and have Edge Lambdas do the SSR part; • Api Gateway + normal Lambda for SSR
Edge Lambdas have lesser latency, but they’re pretty annoying to use and have some limitations
s
@Frank yeah, I dunno if I’d use the edge Lambda. it’s pretty limiting