Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Something tells you that you are using create-react-app.
If so, then read the Building for Relative Paths documentation .
Even better, here's how to do it: before npm run build, you need to create the PUBLIC_URL environment variable (read here )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question