D
Dokploy5mo ago
idctag

nextjs nixpacks custom build command

i am trying to deploy nextjs app but i need to add --legacy-peer-deps to the build command.
3 Replies
Adde
Adde5mo ago
use this env variable NIXPACKS_INSTALL_CMD="" If you use npm for example
NIXPACKS_INSTALL_CMD="npm i --legacy-peer-deps"
NIXPACKS_INSTALL_CMD="npm i --legacy-peer-deps"
https://nixpacks.com/docs/configuration/environment
idctag
idctagOP5mo ago
thank you random internet sir
Adde
Adde5mo ago
No worrys my fellow random internet human(or Ai)

Did you find this page helpful?