From ddb6613fed79792dbffe55c62234b17db55e5ba0 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Wed, 2 Mar 2022 14:01:59 +0100 Subject: [PATCH] change branch purging condition --- examples/hello-world/pages/index.js | 4 ---- packages/next/build/entries.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) 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,