Skip to content

Commit 3728a4f

Browse files
committed
Fix build 5
1 parent a10989c commit 3728a4f

File tree

5 files changed

+3752
-2113
lines changed

5 files changed

+3752
-2113
lines changed

.github/workflows/nextjs.yml

+13-15
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
38+
3839
- name: Detect package manager
3940
id: detect-package-manager
4041
run: |
@@ -49,24 +50,21 @@ jobs:
4950
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
5051
exit 0
5152
else
52-
echo "Unable to determine packager manager"
53+
echo "Unable to determine package manager"
5354
exit 1
5455
fi
56+
5557
- name: Setup Node
56-
uses: actions/setup-node@v3
58+
uses: actions/setup-node@v4
5759
with:
5860
node-version: "20"
5961
cache: ${{ steps.detect-package-manager.outputs.manager }}
62+
6063
- name: Setup Pages
61-
uses: actions/configure-pages@v2
62-
with:
63-
# Automatically inject basePath in your Next.js configuration file and disable
64-
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
65-
#
66-
# You may remove this line if you want to manage the configuration yourself.
67-
static_site_generator: next
64+
uses: actions/configure-pages@v4
65+
6866
- name: Restore cache
69-
uses: actions/cache@v3
67+
uses: actions/cache@v4
7068
with:
7169
path: |
7270
.next/cache
@@ -75,15 +73,15 @@ jobs:
7573
# If source files changed but packages didn't, rebuild from a prior cache.
7674
restore-keys: |
7775
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
76+
7877
- name: Install dependencies
7978
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
8079

8180
- name: Build with Next.js
8281
run: ${{ steps.detect-package-manager.outputs.runner }} next build
83-
- name: Static HTML export with Next.js
84-
run: ${{ steps.detect-package-manager.outputs.runner }} next export
82+
8583
- name: Upload artifact
86-
uses: actions/upload-pages-artifact@v1
84+
uses: actions/upload-pages-artifact@v3
8785
with:
8886
path: ./out
8987

@@ -97,4 +95,4 @@ jobs:
9795
steps:
9896
- name: Deploy to GitHub Pages
9997
id: deployment
100-
uses: actions/deploy-pages@v1
98+
uses: actions/deploy-pages@v4

next.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ let nextConfig = {
33
reactStrictMode: true,
44
swcMinify: true,
55
trailingSlash: true,
6+
output: "export",
7+
basePath: "/",
8+
images: {
9+
unoptimized: true,
10+
},
611
};
712

813
// Required for setting up github pages

0 commit comments

Comments
 (0)