Skip to content

Commit c0a8f6d

Browse files
authored
Update README.md
1 parent e1ef60b commit c0a8f6d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ After running npm build, create a 'projects' folder in the build folder, then cr
3838

3939
ex. build/projects/calculator/index.html
4040

41+
For deploying react projects inside the portfolio, there's a special configuration needed. Before building the project app, add below line to the package.json file.
42+
43+
* "homepage": "https://YOUR_DEPLOYMENT_LINK.com/YOUR_PROJECT_FOLDER"
44+
45+
This will allow the nested react build to open properly by referring to homepage as its root.
46+
47+
Refer to [this](https://facebook.github.io/create-react-app/docs/deployment#building-for-relative-paths) React documentation for more detailed info.
48+
4149
### Resume
4250

4351
After running npm build, drop resume.pdf in the folder before deploying.

0 commit comments

Comments
 (0)