1 parent 2e8569b commit 5149052Copy full SHA for 5149052
1 file changed
next.config.ts
@@ -8,9 +8,11 @@ try {
8
localIp = execSync("ipconfig getifaddr en0").toString().trim();
9
} catch {}
10
11
+const basePath = normalizeBasePath(process.env.NEXT_PUBLIC_BASE_PATH);
12
+
13
const nextConfig: NextConfig = {
14
output: "export",
- basePath: normalizeBasePath(process.env.NEXT_PUBLIC_BASE_PATH),
15
+ ...(basePath ? { basePath } : {}),
16
allowedDevOrigins: [localIp],
17
images: {
18
loader: "custom",
0 commit comments