Skip to content
Snippets Groups Projects
Commit 3d0b7e88 authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Updated readme for building with relative paths

parent acf549b1
Branches
Tags
2 merge requests!39Update admin system,!32Homologa
......@@ -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!**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment