Skip to content

Commit

Permalink
change branch purging condition
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 2, 2022
1 parent 2afeee5 commit ddb6613
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions examples/hello-world/pages/index.js
Expand Up @@ -10,7 +10,3 @@ export default function IndexPage() {
</div>
)
}

export const config = {
runtime: 'edge',
}
2 changes: 1 addition & 1 deletion packages/next/build/entries.ts
Expand Up @@ -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,
Expand Down

0 comments on commit ddb6613

Please sign in to comment.