top | item 43306524

(no title)

ekojs | 11 months 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.

discuss

order

timeflex|11 months ago

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.

stavros|11 months ago

Yeah but this just means that you can get better performance if someone else handles 70% of the requests.