Skip to content

Commit 2474c29

Browse files
committed
Created Next.js configuration.
1 parent e87f15f commit 2474c29

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

next.config.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,30 @@ import type { NextConfig } from "next";
33
const 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

832
export default nextConfig;

public/.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)