Commit 8fa57b0 1 parent 8a785b0 commit 8fa57b0 Copy full SHA for 8fa57b0
File tree 2 files changed +26
-2
lines changed
2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 1
1
/** @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" ,
3
9
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 ;
You can’t perform that action at this time.
0 commit comments