diff --git a/packages/next/build/index.ts b/packages/next/build/index.ts index 2b0482838af1f..8533413b197d9 100644 --- a/packages/next/build/index.ts +++ b/packages/next/build/index.ts @@ -1358,7 +1358,7 @@ export default async function build( MIDDLEWARE_MANIFEST )) const manifestKey = - pageType === 'pages' ? page : join(page, 'page') + pageType === 'pages' ? page : originalAppPath || '' edgeInfo = manifest.functions[manifestKey] } diff --git a/test/e2e/app-dir/app/app/(rootonly)/dashboard/hello/page.js b/test/e2e/app-dir/app/app/(rootonly)/dashboard/hello/page.js index f7d874bf7c554..20fef22a73245 100644 --- a/test/e2e/app-dir/app/app/(rootonly)/dashboard/hello/page.js +++ b/test/e2e/app-dir/app/app/(rootonly)/dashboard/hello/page.js @@ -5,3 +5,7 @@ export default function HelloPage(props) { ) } + +export const config = { + runtime: 'experimental-edge', +}