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

Function pathnameToOutputName

packages/next/src/utils.ts:3725–3731  ·  view source on GitHub ↗
(entryDirectory: string, pathname: string)

Source from the content-addressed store, hash-verified

3723}
3724
3725function pathnameToOutputName(entryDirectory: string, pathname: string) {
3726 if (pathname === '/') {
3727 pathname = '/index';
3728 }
3729
3730 return path.posix.join(entryDirectory, pathname);
3731}
3732
3733export function getPostponeResumePathname(pathname: string): string {
3734 if (pathname === '/') pathname = '/index';

Callers 1

onPrerenderRouteFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected