mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
fix:gh-pages
This commit is contained in:
@@ -18,6 +18,10 @@ function mdiSubset() {
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({ command }) => ({
|
||||
base: command === 'build'
|
||||
? process.env.BASE_PATH || '/'
|
||||
: '/',
|
||||
|
||||
plugins: [
|
||||
// Only run MDI subsetting during production builds, skip in dev server
|
||||
...(command === 'build' ? [mdiSubset()] : []),
|
||||
|
||||
Reference in New Issue
Block a user