File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ PUBLIC_URL = /algorithms-visualizer/
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ npm run start
43
43
44
44
## Deploying
45
45
46
- This is hosted as a subdomain on my main portfolio website, using GitHub pages. The static files are on the ` deploy ` branch.
46
+ This is hosted as a path on my main portfolio website, using GitHub pages. The static files are on the ` deploy ` branch.
47
+
48
+ The ` .env.production ` file updates the ` PUBLIC_URL ` in the build so all of this project's assets are referenced within the respective subpath.
47
49
48
50
```
49
51
npm run deploy
Original file line number Diff line number Diff line change 17
17
"build" : " react-scripts build" ,
18
18
"test" : " react-scripts test" ,
19
19
"eject" : " react-scripts eject" ,
20
- "deploy" : " gh-pages -b deploy -d build"
20
+ "deploy" : " npm run build && gh-pages -b deploy -d build"
21
21
},
22
22
"eslintConfig" : {
23
23
"extends" : [
You can’t perform that action at this time.
0 commit comments