Skip to content

Commit

Permalink
test: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzer committed Nov 28, 2023
1 parent 79fdd5a commit a5deffb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ on:
paths-ignore: # 下列文件的变更不触发部署
- LICENSE
- README.md
tags:
- v*
schedule:
# 每天 6:00 和 18:00 触发工作流程
- cron: '0 6,18 * * *'

jobs:
Expand Down
4 changes: 3 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// eslint-disable-next-line node/prefer-global/process
const isVercel = process.argv.includes('--vercel')
export default defineNuxtConfig({
experimental: {
payloadExtraction: false,
Expand Down Expand Up @@ -27,7 +29,7 @@ export default defineNuxtConfig({
},
},
app: {
baseURL: '/github-trends/',
baseURL: isVercel ? '/' : '/github-trends/', /* 根据 */
head: {
title: 'github-trends',
meta: [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"get": "esno ./scripts/index.ts",
"build": "nuxt build",
"generate": "nuxt generate",
"vercel": "nuxt build && nuxt generate --vercel",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"lint": "eslint .",
Expand Down

0 comments on commit a5deffb

Please sign in to comment.