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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Multi-Casual Android is an independent Android companion app for Multica users." />
<link rel="icon" href="/favicon.png" type="image/png" />
<link rel="icon" href="./favicon.png" type="image/png" />
<title>Multi-Casual Android</title>
</head>
<body>
+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',
},
}));