Skip to content

Commit

Permalink
fix vite config?
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePrior committed Aug 26, 2023
1 parent 55b7dc2 commit ce5bee9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()]
export default defineConfig(({ command, mode }) => {
if (command === 'build') {
return {
plugins: [react()],
base: '/LeafyLink/'
}
} else {
return {
plugins: [react()]
}
}
})

0 comments on commit ce5bee9

Please sign in to comment.