3 ms·
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
by medhir 2y 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?
- nirga 2y agoFor example - the fact that the FE environment variables are hardcoded at build time makes it hard to just deploy a container
- williamstein 2y agoLast 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.