Skip to content

Commit 4579344

Browse files
committed
chore: Remove export script from package.json and update GitHub Actions to only build for static site generation
1 parent f03de3f commit 4579344

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ jobs:
3333
cache: 'pnpm'
3434

3535
- run: pnpm install --frozen-lockfile
36-
- run: pnpm run export # 生成静态站,输出到 ./out
36+
- run: pnpm run build # ← 只需要 build,静态站会输出到 ./out
37+
38+
# (可选)避免被 Jekyll 处理
39+
- run: touch ./out/.nojekyll
3740

3841
- uses: actions/upload-pages-artifact@v3
3942
with:

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8-
"export": "next build && next export",
98
"start": "next start"
109
},
1110
"dependencies": {

0 commit comments

Comments
 (0)