File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: Deploy Next.js site to Pages
4
4
on :
5
5
# Trigger on pushes to the default branch
6
6
push :
7
- branches : [" main" ]
7
+ branches : [' main' ]
8
8
9
9
# Allow manual triggering from the Actions tab
10
10
workflow_dispatch :
@@ -17,7 +17,7 @@ permissions:
17
17
18
18
# Allow only one deployment at a time
19
19
concurrency :
20
- group : " pages"
20
+ group : ' pages'
21
21
cancel-in-progress : false
22
22
23
23
jobs :
@@ -31,15 +31,15 @@ jobs:
31
31
- name : Setup Node.js
32
32
uses : actions/setup-node@v4
33
33
with :
34
- node-version : " 20 "
35
- cache : " yarn"
34
+ node-version : ' 20 '
35
+ cache : ' yarn'
36
36
37
37
- name : Install dependencies
38
38
run : yarn install
39
39
40
40
- name : Configure Next.js for GitHub Pages
41
41
run : |
42
- echo 'module.exports = { output: "export", basePath: "/<REPOSITORY-NAME>" , trailingSlash: true }' > next.config.js
42
+ echo 'module.exports = { output: "export", basePath: "/codebuilder-frontend , trailingSlash: true }' > next.config.js
43
43
cat next.config.js
44
44
45
45
- name : Build Next.js site
Original file line number Diff line number Diff line change @@ -3,4 +3,7 @@ module.exports = {
3
3
eslint : {
4
4
ignoreDuringBuilds : true ,
5
5
} ,
6
+ output : 'export' ,
7
+ basePath : '/codebuilder-frontend' , // Replace with your GitHub repository name
8
+ trailingSlash : true , // Ensures compatibility with GitHub Pages
6
9
}
You can’t perform that action at this time.
0 commit comments