For example - the fact that the FE environment variables are hardcoded at build time makes it hard to just deploy a container
Re:Why I Won’t Use Next.js
by williamstein on Saturday March 22, 2025 @09:33PM
(#43450246)
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.
I’ve been using Next deployed to a container for years without issue — what are the major challenges here?