vite.config.js (312B) - raw
1 import { defineConfig } from 'vite'
2 import react from '@vitejs/plugin-react'
3
4 // https://vitejs.dev/config/
5 export default defineConfig(({ command }) => {
6 const config = {
7 plugins: [react()],
8 base: '/',
9 }
10
11 if (command !== 'serve') {
12 config.base = '/ToDo-App-Front-End/'
13 }
14
15 return config
16 })