Comment by frainfreeze

15 days ago

I m curious, how do you deploy Next.js apps w/o docker? Self hosted nodejs? Also how much do you lag behind vercel releases?

Hi, I build NextJs in standalone mode per docs and it works pretty well, we keep it running using pm2 but I want to migrate to systems service. I would say any NextJs should work but we run DollarDeploy ourselves using NextJs 14

What may be mysterious here? You can have multiple versions of Node installed if needed, and every app brings in the entire dependency tree, isolated from everything else.

If you trust your apps enough, you don't even need chroot.

  • I have much more peace of mind when it's not in chroot but even better inside systemd unit and all that ReadonlyPath and capabilities applied. In the ideal case network access beyond localhost and may be db is denied for greater safety