nuxt + nginx proper config?

Hi, I've seen a lot of tutorials/guides showing using a proxy with nginx to proxy to localhost:3000, is this a standard way to build and configure a production environment it just seems like an odd way to configure a server, particularly compared to a build of a Vue SPA which is easily configured for location / { root /path/to/vue/proj appreciate the help
4 Replies
manniL
manniL6mo ago
It is common if you have another service, in this case the nuxt server (for SSR and Nitro API routes) running
lose_but_whole
lose_but_wholeOP6mo ago
so if you are using nitro, this is standard practice? my ideal setup is having nuxt with ssr+(a few) ssg with FastAPI or something similar on other paths that would be controlled by nginx
manniL
manniL6mo ago
yes, it is 🙂 you can always put NGINX in front
lose_but_whole
lose_but_wholeOP6mo ago
thanks
Want results from more Discord servers?
Add your server