diff --git a/vite.config.js b/vite.config.js index b1b5f91..73d4f9d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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()] + } + } })