updated deploy instructions, improved building script

This commit is contained in:
2023-05-17 10:43:46 +03:00
parent 6f80c3c3ba
commit 6742b46db7
4 changed files with 16 additions and 6 deletions

View File

@ -2,7 +2,9 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
base: "/static",
plugins: [react()],
})
export default defineConfig(
({ command }) => ({
base: (command === 'serve') ? "/" : "/static",
plugins: [react()],
})
)