Closed dcporter44 closed 4 years ago
Hi @dcporter44 ๐ Thanks for the feedback.
That change happened almost a year ago, and we already performed the transition on this buildpack.
If you're seeing two build
runs, then there's probably something else going on with your app. Do you have other pre or post build scripts in your package.json
that would trigger another build?
I'm actually noticing that "heroku-run-build-script"=false
is actually not doing anything and its still building twice :(
I havent messed with the package.json file at all. I'm using it straight out of the box from latest CRA version
I just created an new app with create-react-app 3.4.0 (current as of now), pushed it to a new Heroku app with this buildpack, the build ran once, and it started-up healthy ๐
What does heroku buildpacks
return for your app?
What are the contents of the package.json
?
My guess is that either your app has the buildpack set twice (maybe as two different identifiers) or that thereโs a pre or post install script performing build again.
Not an issue with this buildpack itself.
Hey, I figured it out. I also had the heroku/node buildpack added on my app. I just removed that and now it's only running once. ๐
Heroku has recently started executing
build
automatically: https://devcenter.heroku.com/changelog-items/1557This means that when using this buildpack,
build
is run two times. Once by Heroku and once by this buildpack.If you add
"heroku-run-build-script"=false
topackage.json
, it will prevent Heroku from running automatically.This should be added to the documentation of this buildpack.