Skip to content

Commit 3e861e9

Browse files
committed
Fix build 3
1 parent 9d36ec3 commit 3e861e9

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/nextjs.yml

-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ jobs:
8080

8181
- name: Build with Next.js
8282
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
8583
- name: Upload artifact
8684
uses: actions/upload-pages-artifact@v1
8785
with:

next.config.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,22 @@ let nextConfig = {
33
reactStrictMode: true,
44
swcMinify: true,
55
trailingSlash: true,
6-
7-
}
8-
6+
output: "export",
7+
};
98

109
// Required for setting up github pages
11-
if (process.env.NEXT_PUBLIC_IS_GITHUB){
10+
if (process.env.NEXT_PUBLIC_IS_GITHUB) {
1211
// const repo = 'krittika-website'
1312
// const assetPrefix = `/${repo}/`
1413
// const basePath = `/${repo}`
15-
1614
// nextConfig = {
1715
// assetPrefix: assetPrefix,
1816
// basePath: basePath,
1917
// reactStrictMode: true,
2018
// swcMinify: true,
2119
// trailingSlash: true,
22-
2320
// }
2421
// console.log(repo)
2522
}
2623

27-
module.exports = nextConfig
28-
24+
module.exports = nextConfig;

0 commit comments

Comments
 (0)