Skip to content

Commit

Permalink
Fix github deployment path
Browse files Browse the repository at this point in the history
  • Loading branch information
ifavo committed Jan 23, 2025
1 parent 003ea42 commit 302f270
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
run: npm install

- name: Build the project
env:
BASE_PATH: '/example-vebetterdao-vote-tracker/' # Set the base path dynamically
run: npm run build

- name: Deploy to GitHub Pages
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export default defineConfig({
optimizeDeps: {
exclude: ['lucide-react'],
},
base: process.env.BASE_PATH || '/',
});

0 comments on commit 302f270

Please sign in to comment.