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/.gitignore b/site/.gitignore index c752f1f..7020589 100644 --- a/site/.gitignore +++ b/site/.gitignore @@ -3,3 +3,4 @@ dist/ output/ .playwright-cli/ *.tsbuildinfo +.edgeone/ 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', + }, +}));