File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 80
80
81
81
- name : Build with Next.js
82
82
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
85
83
- name : Upload artifact
86
84
uses : actions/upload-pages-artifact@v1
87
85
with :
Original file line number Diff line number Diff line change @@ -3,26 +3,22 @@ let nextConfig = {
3
3
reactStrictMode : true ,
4
4
swcMinify : true ,
5
5
trailingSlash : true ,
6
-
7
- }
8
-
6
+ output : "export" ,
7
+ } ;
9
8
10
9
// Required for setting up github pages
11
- if ( process . env . NEXT_PUBLIC_IS_GITHUB ) {
10
+ if ( process . env . NEXT_PUBLIC_IS_GITHUB ) {
12
11
// const repo = 'krittika-website'
13
12
// const assetPrefix = `/${repo}/`
14
13
// const basePath = `/${repo}`
15
-
16
14
// nextConfig = {
17
15
// assetPrefix: assetPrefix,
18
16
// basePath: basePath,
19
17
// reactStrictMode: true,
20
18
// swcMinify: true,
21
19
// trailingSlash: true,
22
-
23
20
// }
24
21
// console.log(repo)
25
22
}
26
23
27
- module . exports = nextConfig
28
-
24
+ module . exports = nextConfig ;
You can’t perform that action at this time.
0 commit comments