< Back to Coding, React

Making React use relative paths

If you build something and then upload it to www.website.com/newFolder and it breaks, you need to make it relative.

To do this, just add

"homepage": "./",

to your package.json and rebuild.

Leave a Reply

Your email address will not be published. Required fields are marked *