Fix GitHub Pages: add Vite config with base path, fix favicon, add VITE_BASE env

This commit is contained in:
Xisheng-Zhao
2026-06-08 22:53:06 +08:00
parent fd3ba44e47
commit f5cc00b985
4 changed files with 16 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(() => ({
plugins: [react()],
base: process.env.VITE_BASE || '/',
build: {
outDir: 'dist',
},
server: {
host: '127.0.0.1',
},
}));