silverwolf-x/project / packages /next /src /client /has-base-path.ts
silverwolf-x's picture
download
raw
241 Bytes
import { pathHasPrefix } from '../shared/lib/router/utils/path-has-prefix'
const basePath = (process.env.__NEXT_ROUTER_BASEPATH as string) || ''
export function hasBasePath(path: string): boolean {
return pathHasPrefix(path, basePath)
}

Xet Storage Details

Size:
241 Bytes
·
Xet hash:
f933ca1a29e4f413197c31a67c3759d9f0958f24e30943abd046621866998394

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.