Skip to content

Commit 784eb51

Browse files
committed
fix: add basePath for GitHub Pages deployment
1 parent f1c78fa commit 784eb51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

next.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import type { NextConfig } from "next";
22

3+
const isProd = process.env.NODE_ENV === 'production';
4+
35
const nextConfig: NextConfig = {
46
/* config options here */
57
output: "export",
8+
basePath: isProd ? "/traeweb1" : "",
69
images: {
710
unoptimized: true,
811
},

0 commit comments

Comments
 (0)