Skip to content

Commit 78ccb29

Browse files
committed
Added basePath flag
1 parent 2ea863e commit 78ccb29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

next.config.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
* @type {import('next').NextConfig}
33
*/
44
const nextConfig = {
5+
basePath:
6+
process.env.NODE_ENV === "production"
7+
? "/Next.js-and-GitHub-Pages-Example"
8+
: "",
59
output: "export",
610
images: {
711
loader: "akamai",

0 commit comments

Comments
 (0)