I learned about the fact that under the hood solid-start uses vinxi that is a smart way to combine vite and nitro. For the deployment I wanted to use terraform instead of solutions listed here and thanks to nitro preset I thought this could be as easy as:
I did not really understand what to do with the outputs (public and server folder). Thanks to that guide I've use a Cloudfront distribution that points to S3 for static assets (example with favicon) and lambda for the rendering of the application but that is not working (Cannot read properties of undefined (reading 'file')).
I later found that defineNuxtConfig uses cdnURL for static assets but I was not able to find the same on vinxi.
Do you guys have any ideas how to get the correct build for AWS Lambda with SSR and deliver static assets through a cdn ?
For the lambda code I've only used the server folder (vinxi outputs). Do I need to use the public one as well ?
Hi, I recently started playing around with solid-start and I use the starter code with:
I learned about the fact that under the hood solid-start uses
vinxi
that is a smart way to combinevite
andnitro
. For the deployment I wanted to useterraform
instead of solutions listed here and thanks tonitro
preset I thought this could be as easy as:I did not really understand what to do with the
outputs
(public
andserver
folder). Thanks to that guide I've use a Cloudfront distribution that points to S3 for static assets (example with favicon) and lambda for the rendering of the application but that is not working (Cannot read properties of undefined (reading 'file')).I later found that
defineNuxtConfig
usescdnURL
for static assets but I was not able to find the same onvinxi
.Do you guys have any ideas how to get the correct build for AWS Lambda with SSR and deliver static assets through a cdn ? For the lambda code I've only used the
server
folder (vinxi
outputs). Do I need to use thepublic
one as well ?