diff --git a/vite.config.js b/vite.config.js index e4bc166..03835ed 100644 --- a/vite.config.js +++ b/vite.config.js @@ -12,3 +12,21 @@ export default defineConfig({ }, } }) + +export default defineConfig(({ command }) => { + const config = { + plugins: [react()], + base: '/', + css: { + postcss: { + plugins: [tailwindcss()], + }, + } + } + + if (command !== 'serve') { + config.base = '/comclub-website-2024/' + } + + return config +})