(nextVersion: string)
| 3717 | * https://github.com/vercel/next.js/pull/26756 |
| 3718 | */ |
| 3719 | export 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 | |
| 3725 | function pathnameToOutputName(entryDirectory: string, pathname: string) { |
| 3726 | if (pathname === '/') { |