Deploy NextJs 14 using NGINX
Unanswered
European anchovy posted this in #help-forum
European anchovyOP
Hello everybody I wanted to know if it was possible to go through the build to deploy via NGINX its NEXTJS application. Indeed I am in a context where I use ansible. I would like to avoir copying the whole NextJS project but only used a build of this project that I can Zip and then use it via NGINX.
4 Replies
Toyger
you can build docker image with your project inside and just make reverse proxy with nginx
@Toyger you can build docker image with your project inside and just make reverse proxy with nginx
European anchovyOP
Yeah that is a solution that I had already thought but I wanted to understand How we can use NextJS building with NGINX
Toyger
nginx isn't build system, you still need to install node_modules some of which can be compilable, especially if you running in different environments.
@Toyger nginx isn't build system, you still need to install node_modules some of which can be compilable, especially if you running in different environments.
European anchovyOP
No what I wanted to say is that only the static build and NGINX , I could use my application but I just was that some options are not possible