From bf53296006fcc29b9451f77baf663928b01b54fc Mon Sep 17 00:00:00 2001 From: Xisheng-Zhao Date: Mon, 8 Jun 2026 22:50:42 +0800 Subject: [PATCH] Fix GitHub Pages base path and favicon, add Vite config --- .github/workflows/deploy-site.yml | 2 +- site/index.html | 2 +- site/vite.config.ts | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 site/vite.config.ts diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 40bd0b9..fa7f8da 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -27,7 +27,7 @@ jobs: node-version: 20 cache: npm cache-dependency-path: site/package-lock.json - - run: cd site && npm install && npm run build + - run: cd site && npm install && VITE_BASE=/multi-casual-android/ npm run build - uses: actions/upload-pages-artifact@v3 with: path: site/dist diff --git a/site/index.html b/site/index.html index 8c4d702..5abbcf1 100644 --- a/site/index.html +++ b/site/index.html @@ -4,7 +4,7 @@ - + Multi-Casual Android diff --git a/site/vite.config.ts b/site/vite.config.ts new file mode 100644 index 0000000..189c8a4 --- /dev/null +++ b/site/vite.config.ts @@ -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', + }, +}));