Heroku "content not from webpack is served from /app/public" despite using all default create-react-app config Heroku "content not from webpack is served from /app/public" despite using all default create-react-app config heroku heroku

Heroku "content not from webpack is served from /app/public" despite using all default create-react-app config


So, I got a Solution, Heroku uses nodejs buildpack as default. You'll need to add that of CRA(Create react App).

First, check the build pack you're using heroku buildpacks -a <appname>

then change to CRA buildpack heroku buildpacks:set mars/create-react-app -a <appname>

Then redeploy.

You can read this article for more configuration


Heroku uses default build pack as heroku/nodejs.Need too changes your buildpack configuration in your heroku app settings.You can use add below git url as build pack for react app

https://github.com/mars/create-react-app-buildpack


You can add object "engines" inside package.json (version node & npm using build your app)

"engines": {    "node": "10.15.3",    "npm": "6.14.5"    }

***check version : node -v & npm -v

P/s: It's working with me.