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
It is common if you have another service, in this case the nuxt server (for SSR and Nitro API routes) running
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
yes, it is 🙂
you can always put NGINX in front
thanks