Hacker News new | ask | show | jobs
by medhir 451 days ago
Lots of discussion recently around how Next.js is “hard to deploy” without Vercel and don’t quite understand.

I’ve been using Next deployed to a container for years without issue — what are the major challenges here?

2 comments

For example - the fact that the FE environment variables are hardcoded at build time makes it hard to just deploy a container
Last I checked, I think with nextjs, if you want to build once and deploy with different base paths (without having to rebuild), this is impossible, since the base path is hardcoded all over the build. This makes some forms of deployment of nextjs sites much more difficult than with other frameworks.