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

Function getNextServerPath

packages/next/src/utils.ts:3719–3723  ·  view source on GitHub ↗
(nextVersion: string)

Source from the content-addressed store, hash-verified

3717 * https://github.com/vercel/next.js/pull/26756
3718 */
3719export function getNextServerPath(nextVersion: string) {
3720 return semver.gte(nextVersion, 'v11.0.2-canary.4')
3721 ? 'next/dist/server'
3722 : 'next/dist/next-server/server';
3723}
3724
3725function pathnameToOutputName(entryDirectory: string, pathname: string) {
3726 if (pathname === '/') {

Callers 1

serverBuildFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected