From 3d0b7e881749cf0ed7d2635871516777767e868f Mon Sep 17 00:00:00 2001
From: Israel Barreto Sant'Anna <ibsantanna@inf.ufpr.br>
Date: Wed, 22 Jul 2020 10:53:56 -0300
Subject: [PATCH] Updated readme for building with relative paths

---
 README.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/README.md b/README.md
index 9d9614c4..763ec537 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!**
-- 
GitLab