Skip to content

Commit

Permalink
fix: update vite.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Golovachev (moonzaki) committed Nov 10, 2024
1 parent 0841eda commit e727b04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import react from '@vitejs/plugin-react-swc';

// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
base: '/notes-app/'
base: process.env.NODE_ENV === 'production' ? '/your-repo-name/' : '/',
plugins: [react()]
});

0 comments on commit e727b04

Please sign in to comment.