MCPcopy Create free account
hub / github.com/vercel/vercel / normalizePathData

Function normalizePathData

packages/next/src/utils.ts:3264–3274  ·  view source on GitHub ↗
(pathData: string)

Source from the content-addressed store, hash-verified

3262 }
3263
3264 const normalizePathData = (pathData: string) => {
3265 if (
3266 (srcRoute === '/' || srcRoute == '/index') &&
3267 pathData.endsWith(RSC_PREFETCH_SUFFIX)
3268 ) {
3269 delete lambdas[pathData];
3270 return pathData.replace(/([^/]+\.prefetch\.rsc)$/, '__$1');
3271 }
3272
3273 return pathData;
3274 };
3275
3276 if (outputPathData || outputPathPrefetchData) {
3277 // If the allowQuery is different than the original allowQuery, then we

Callers 1

onPrerenderRouteFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected