File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+ # abort on errors
3+ set -e
4+
5+ # build
6+ npm run build
7+
8+ # navigate into the build output directory
9+ cd dist
10+
11+ # place .nojekyll to bypass Jekyll processing
12+ echo > .nojekyll
13+
14+ # if you are deploying to a custom domain
15+ # echo 'www.example.com' > CNAME
16+
17+ git init
18+ git checkout -B main
19+ git add -A
20+ git commit -m ' deploy'
21+
22+ # if you are deploying to https://<USERNAME>.github.io
23+ # git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git main
24+
25+ # if you are deploying to https://<USERNAME>.github.io/<REPO>
26+ git push -f git@github.com:Sam-MARTis/About-Me.git main:gh-pages
27+
28+
29+ cd -
Original file line number Diff line number Diff line change 77 "dev" : " vite" ,
88 "build" : " vite build" ,
99 "lint" : " eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0" ,
10- "preview" : " vite preview"
10+ "preview" : " vite preview" ,
11+ "deploy" : " gh-pages -d dist"
1112 },
1213 "dependencies" : {
1314 "react" : " ^18.2.0" ,
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ import react from '@vitejs/plugin-react'
44// https://vitejs.dev/config/
55export default defineConfig ( {
66 plugins : [ react ( ) ] ,
7+ base : '/About-Me' ,
78} )
You can’t perform that action at this time.
0 commit comments