Skip to content

Commit 5149052

Browse files
committed
Switch GitHub Pages to custom domain root
1 parent 2e8569b commit 5149052

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

next.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ try {
88
localIp = execSync("ipconfig getifaddr en0").toString().trim();
99
} catch {}
1010

11+
const basePath = normalizeBasePath(process.env.NEXT_PUBLIC_BASE_PATH);
12+
1113
const nextConfig: NextConfig = {
1214
output: "export",
13-
basePath: normalizeBasePath(process.env.NEXT_PUBLIC_BASE_PATH),
15+
...(basePath ? { basePath } : {}),
1416
allowedDevOrigins: [localIp],
1517
images: {
1618
loader: "custom",

0 commit comments

Comments
 (0)