Skip to content

Commit 15f3d40

Browse files
committed
Publish project
1 parent a680601 commit 15f3d40

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.env.production

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PUBLIC_URL=/algorithms-visualizer/

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ npm run start
4343

4444
## Deploying
4545

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.
4749

4850
```
4951
npm run deploy

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build": "react-scripts build",
1818
"test": "react-scripts test",
1919
"eject": "react-scripts eject",
20-
"deploy": "gh-pages -b deploy -d build"
20+
"deploy": "npm run build && gh-pages -b deploy -d build"
2121
},
2222
"eslintConfig": {
2323
"extends": [

0 commit comments

Comments
 (0)