Skip to content

Commit

Permalink
ci: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nailiable committed Aug 9, 2024
1 parent dd736c8 commit e077d85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
node-version: 20.x
- run: node -v
- run: npm i -g pnpm && pnpm install
- run: pnpm run build
- run: pnpm run build --base=./
- name: Deploy # 部署
uses: JamesIves/[email protected]
with:
Expand Down
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import path from 'node:path'
import { argv } from 'node:process'
import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import generateSitemap from 'vite-ssg-sitemap'
Expand All @@ -19,13 +20,17 @@ import { VueRouterAutoImports } from 'unplugin-vue-router'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
import { setup } from '@css-render/vue3-ssr'

const base = argv.find(arg => arg.startsWith('--base'))?.split('=')[1] || '/'

export default defineConfig({
resolve: {
alias: {
'~/': `${path.resolve(__dirname, 'src')}/`,
},
},

base,

plugins: [
VueMacros({
plugins: {
Expand Down

0 comments on commit e077d85

Please sign in to comment.