Fix GitHub Pages base path and favicon, add Vite config
This commit is contained in:
@@ -27,7 +27,7 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: site/package-lock.json
|
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
|
- uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: site/dist
|
path: site/dist
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<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." />
|
<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>
|
<title>Multi-Casual Android</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -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',
|
||||||
|
},
|
||||||
|
}));
|
||||||
Reference in New Issue
Block a user