Skip to content

Commit 8fa57b0

Browse files
committed
fix next config for gh pages
1 parent 8a785b0 commit 8fa57b0

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

site/next.config.mjs

+26-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
/**
4+
* Enable static exports for the App Router.
5+
*
6+
* @see https://nextjs.org/docs/app/building-your-application/deploying/static-exports
7+
*/
8+
output: "export",
39

4-
export default nextConfig;
10+
/**
11+
* Set base path. This is the slug of your GitHub repository.
12+
*
13+
* @see https://nextjs.org/docs/app/api-reference/next-config-js/basePath
14+
*/
15+
basePath: "/nextjs-github-pages",
16+
17+
/**
18+
* Disable server-based image optimization. Next.js does not support
19+
* dynamic features with static exports.
20+
*
21+
* @see https://nextjs.org/docs/app/api-reference/components/image#unoptimized
22+
*/
23+
images: {
24+
unoptimized: true,
25+
},
26+
};
27+
28+
export default nextConfig;

site/public/.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)