thorne51
project with MongoDB
yeahp, SSR works with zero config. I'm personally having trouble converting an SSR app to a static one, but that's not on this discussion 😛
setting up nuxt ssr with amplify is dead easy, as you will see from the link posted, the only important thing is to enable the ssr logging (helps with debugging too) so that the amplify app is created with WEB_COMPUTE platform instead of WEB
10 replies
project with MongoDB
Hi @VanishDark , I'm guessing you meant AWS account 🙂
So what I can suggest is that you look at deploying to Amplify (https://docs.aws.amazon.com/amplify/latest/userguide/get-started-nuxt.html), seeing as it supports SSR now using Lambdas. Your MongoDB queries will probably be done server side as you don't want to expose your connection string and credentials publicly. I'd suggest setting up server api routes and look at deploying them with your Nuxt app on Amplify (worth noting that server routes are executed inline instead of a request with SSR).
There are other alternatives like Vercel as well but I don't know enough about them to give any advice.
If you're not keen on using Amplify and have an EC2 server available, you could also setup a Nginx reverse proxy to proxy requests to your nuxt app running on port 3000.
10 replies