Skip to content

Commit

Permalink
chore: add base path on vite config to deploy on gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
0xabdulkhaliq committed May 15, 2024
1 parent 583dd15 commit c0403c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-react-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ jobs:
clean: true
single-commit: true
token: ${{ secrets.GITHUB_TOKEN }}
commit-user-name: "github-actions[bot]"
commit-user-email: "github-actions[bot]@users.noreply.github.com"
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link
rel="canonical"
href="https://cv-application-0xabdulkhalid.vercel.app/"
href="https://0xabdulkhalid.github.io/cv-application/"
/>
<title>CV Application</title>
</head>
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: '/cv-application/',
})

0 comments on commit c0403c4

Please sign in to comment.