Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vercel/next.js
/ hasBasePath
Function
hasBasePath
packages/next/src/client/has-base-path.ts:5–7 ·
view source on GitHub ↗
(path: string)
Source
from the content-addressed store, hash-verified
3
const
basePath = (process.env.__NEXT_ROUTER_BASEPATH as string) ||
''
4
5
export
function
hasBasePath(path: string): boolean {
6
return
pathHasPrefix(path, basePath)
7
}
Callers
7
removeBasePath
Function · 0.90
initialize
Function · 0.90
Router
Function · 0.90
serverActionReducer
Function · 0.90
matchesMiddleware
Function · 0.90
change
Method · 0.90
isLocalURL
Function · 0.90
Calls
1
pathHasPrefix
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…