diff --git a/README.md b/README.md index 9d9614c4fd32e65dcbefff34b758d7824b397181..763ec537cf8f086611fc5d3a5a238ee45684a314 100755 --- a/README.md +++ b/README.md @@ -27,6 +27,20 @@ Your app is ready to be deployed! See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. +#### Building for Relative Paths + +By default, the build is produced assuming your app is hosted at the server root.<br> +To override this, specify the homepage in your package.json, for example: + +```js +"homepage": "https://api.portalmec.c3sl.ufpr.br/relativepath" +``` +You will also need to set the relative path in the basename property from BrowserReact in src/App.js: + +```js +<BrowserRouter basename="/relativepath"> +``` + ### `npm run eject` **Note: this is a one-way operation. Once you `eject`, you can’t go back!**