On application start the terminal logs the message: webpack output is served from /GrowersBrains.
Create React App assumes the application is hosted at the serving web server's root or a subpath as specified in package.json"homepage": "https://nataliepina.github.io/GrowersBrains",.
On application start the terminal logs the message:
webpack output is served from /GrowersBrains
.Create React App assumes the application is hosted at the serving web server's root or a subpath as specified in
package.json
"homepage": "https://nataliepina.github.io/GrowersBrains",
.homepage
in thepackage.json
is a requirement forgh-pages
and we cannot work around it by serving the same build from different pathsThere is a related issue on StackOverflow.
The simplest solution appears to be creating an
.env
file withPUBLIC_URL=/
in the local development environment.What do you think of this solution @nataliepina @Gajendra-NL @vyasriday ?