File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,30 @@ import type { NextConfig } from "next";
33const nextConfig : NextConfig = {
44 /* config options here */
55 reactCompiler : true ,
6+
7+ /**
8+ * Enable static exports.
9+ *
10+ * @see https://nextjs.org/docs/app/building-your-application/deploying/static-exports
11+ */
12+ output : "export" ,
13+
14+ /**
15+ * Set base path. This is the slug of your GitHub repository.
16+ *
17+ * @see https://nextjs.org/docs/app/api-reference/next-config-js/basePath
18+ */
19+ basePath : "/nextjs-github-pages" ,
20+
21+ /**
22+ * Disable server-based image optimization. Next.js does not support
23+ * dynamic features with static exports.
24+ *
25+ * @see https://nextjs.org/docs/app/api-reference/components/image#unoptimized
26+ */
27+ images : {
28+ unoptimized : true ,
29+ } ,
630} ;
731
832export default nextConfig ;
You can’t perform that action at this time.
0 commit comments