Skip to content

Commit f216fa3

Browse files
author
liq
committed
add: NEXT_PUBLIC_BASE_PATH环境变量
1 parent 6e15154 commit f216fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/utils/next-rebuild.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export function usePathname(): string | null {
1010
const publicBasePath = process?.env?.NEXT_PUBLIC_BASE_PATH
1111
if (pathname && publicBasePath)
1212
pathname = publicBasePath + pathname
13-
console.debug(`[NextRebuild] oriPathName:${useNextPathname()}, currentPathName:${pathname}`)
13+
console.debug(`[NextRebuild] oriPathName:${useNextPathname()}, currentPathName:${pathname}`, process.env)
1414
return pathname
1515
}

0 commit comments

Comments
 (0)