Hacker News new | ask | show | jobs
by ekojs 466 days ago
Interesting. My hunch is that Next.js is not optimized for the dockerized Node server deployment. I would say that you could get much greater prerendering performance from Next.js by just fronting the assets directly using Caddy/Nginx.
2 comments

Actually it is like any other Node server app, which is important if you're using dynamic routes. Of course there is a lot you can put behind client-side JS, but most people are interested in SSR for good reason. So while a separate web server can help in some scenarios, it sort of indicates Next.js might be more than you need.
Yeah but this just means that you can get better performance if someone else handles 70% of the requests.