Skip to content

Commit 9704d1d

Browse files
committed
Fix Github Pages build path
1 parent 9cb15cd commit 9704d1d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/nextjs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Upload artifact
8383
uses: actions/upload-pages-artifact@v3
8484
with:
85-
path: ./out
85+
path: ./.next/standalone
8686

8787
# Deployment job
8888
deploy:

LEARNING.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ export default nextConfig;
4848
REACT_APP_ALCHEMY_API_KEY: ${{ secrets.REACT_APP_ALCHEMY_API_KEY }}
4949
REACT_APP_ETHERSCAN_API_KEY: ${{ secrets.REACT_APP_ETHERSCAN_API_KEY }}
5050
```
51-
- In the same file, also comment out the line that says `static_site_generator: next` under `- name: Setup Pages`. Additonally, you'll also need to comment out the `with:` header, because an empty field is invalid:
51+
- In the next section of that same file, update the `path` where the binaries are located; change `path: ./out` to `path: ./.next/standalone`:
52+
```yml
53+
- name: Upload artifact
54+
uses: actions/upload-pages-artifact@v3
55+
with:
56+
path: ./.next/standalone
57+
```
58+
- Still in that file, also comment out the line that says `static_site_generator: next` under `- name: Setup Pages`. Additonally, you'll also need to comment out the `with:` header, because an empty field is invalid:
5259
```yml
5360
- name: Setup Pages
5461
uses: actions/configure-pages@v5

0 commit comments

Comments
 (0)