Avoid double build with Node.js
complete
Yann Léger
If a build script is referenced in your
package.json
, Koyeb will execute this command automatically during the build stage using yarn build
or npm run build
(depending on your package manager).If you define a custom build command, two build commands are currently executed:
- the build script referenced in your package.json,
- the build command you defined.
The expected behavior is to overwrite the default build command.
Log In
Sanna Jammeh
This does not appear as complete. Looking at the logs with pnpm, it built everything twice.
Édouard Bonlieu
complete
If you configure a
build
command in your Service, it now has the authority over the default build command yarn build
or npm build
.Édouard Bonlieu
in progress
Yann Léger
planned