Skip to content

Commit d37d5f3

Browse files
author
haotao chen
committed
feat: add export process
1 parent f32ad06 commit d37d5f3

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/nextjs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ jobs:
7575
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7676
- name: Build with Next.js
7777
run: ${{ steps.detect-package-manager.outputs.runner }} next build
78+
- name: Export with Next.js
79+
run: ${{ steps.detect-package-manager.outputs.runner }} next export
7880
- name: Upload artifact
7981
uses: actions/upload-pages-artifact@v3
8082
with:

next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ const config = {
4444
};
4545

4646
config.output = "export";
47+
config.basePath = process.env.PAGES_BASE_PATH;
4748

4849
module.exports = config;

0 commit comments

Comments
 (0)