Fix GitHub Pages base path and favicon, add Vite config

This commit is contained in:
Xisheng-Zhao
2026-06-08 22:50:42 +08:00
parent dbf7c75581
commit bf53296006
3 changed files with 15 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',
},
}));