forked from polka_billy/porridger
updated deploy instructions, improved building script
This commit is contained in:
@ -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()],
|
||||
})
|
||||
)
|
||||
|
Reference in New Issue
Block a user