diff --git a/examples/hello-world/pages/index.js b/examples/hello-world/pages/index.js index 88fdc555b860..dd2c3af8cab8 100644 --- a/examples/hello-world/pages/index.js +++ b/examples/hello-world/pages/index.js @@ -10,7 +10,3 @@ export default function IndexPage() { ) } - -export const config = { - runtime: 'edge', -} diff --git a/packages/next/build/entries.ts b/packages/next/build/entries.ts index c6d3bc0a3485..43be2a3743e3 100644 --- a/packages/next/build/entries.ts +++ b/packages/next/build/entries.ts @@ -112,7 +112,7 @@ export async function getPageRuntime( encoding: 'utf8', }) // branch prunes for entry page without runtime option - if (pageContent.includes('export const config =')) { + if (pageContent.includes('runtime:')) { const { body } = await parse(pageContent, { filename: pageFilePath, isModule: true,