Skip to content

Commit d2e03b9

Browse files
committed
fix script
1 parent cc879b4 commit d2e03b9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/nextjs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ jobs:
4040
node-version: ${{ matrix.node-version }}
4141
cache: "pnpm"
4242

43+
- name: Setup Pages
44+
uses: actions/configure-pages@v5
45+
with:
46+
# Automatically inject basePath in your Next.js configuration file and disable
47+
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
48+
#
49+
# You may remove this line if you want to manage the configuration yourself.
50+
static_site_generator: next
51+
4352
# 4. Restore Cache
4453
- name: Restore Cache
4554
uses: actions/cache@v4
@@ -67,7 +76,7 @@ jobs:
6776
- name: Upload Build Artifact
6877
uses: actions/upload-pages-artifact@v3
6978
with:
70-
path: ./docs # Ensure this matches your build output directory
79+
path: ./docs
7180

7281
deploy:
7382
environment:

0 commit comments

Comments
 (0)