diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index d789a7c..974401e 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -3,9 +3,10 @@ import babel from '@rolldown/plugin-babel' import { defineConfig } from 'vite' // https://vite.dev/config/ -export default defineConfig({ +export default defineConfig(({ command }) => ({ + base: command === 'build' ? '/project2/' : '/', plugins: [ react(), babel({ presets: [reactCompilerPreset()] }) ], -}) +})) \ No newline at end of file