I need to acces static contents (images) so I found the PUBLIC_URL variable is the way it's done in React.
Can the path "/public" be changed to something else?
I ask this because I added the
PUBLIC_URL=https://yourdomain.whatever/public
and all is fine,
but I noticed that npm start
open the browser in http://localhost:8000/public .
If I remove or comment that PUBLIC_URL
variable it returns to start from http://localhost:8000 and images are available statically from /public.
So, why (and how) have I to define the PUBLI_URL variable?
Do I actually need it or it's fine to skip because already there by default?
Why the npm start
open the http://localhost:8000/public url ?