Skip to content

Commit 150e098

Browse files
committed
Replace npm run export with output: export in next.config.js
1 parent f97bd51 commit 150e098

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ jobs:
7171
file_pattern: 'generated.json'
7272
skip_checkout: true
7373
push_options: '--force'
74-
- name: Static HTML export with Next.js
75-
run: npm run export
7674
- name: Upload artifact
7775
uses: actions/upload-pages-artifact@v1
7876
with:

.github/workflows/pr.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ jobs:
4343
run: npm run build
4444
env:
4545
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
46-
- name: Static HTML export with Next.js
47-
run: npm run export
4846
- name: Upload artifact
4947
uses: actions/upload-pages-artifact@v1
5048
with:

next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const nextConfig = {
44
reactStrictMode: true,
55
productionBrowserSourceMaps: true,
66
trailingSlash: true,
7+
output: "export"
78
}
89

910
module.exports = nextConfig

0 commit comments

Comments
 (0)