Skip to content

Commit

Permalink
修改不同平台部署的 base
Browse files Browse the repository at this point in the history
  • Loading branch information
omvjro committed Sep 15, 2024
1 parent fdb09f2 commit 335c6dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
run: npm install

- name: Build project
run: npm run build
run: |
echo "VITE_BASE_URL=/DOL-pancake/" >> $GITHUB_ENV
npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
13 changes: 0 additions & 13 deletions vercel.json

This file was deleted.

2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
base: "/DOL-pancake/",
base: process.env.VITE_BASE_URL || '/',
plugins: [
vue({
template: {
Expand Down

0 comments on commit 335c6dd

Please sign in to comment.