From 3003593ae4853e55b8bc2a73be90f4baec1fa7ea Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Thu, 30 Mar 2023 23:56:30 +0200 Subject: [PATCH] make sure to await --- packages/next/src/server/dev/static-paths-worker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/src/server/dev/static-paths-worker.ts b/packages/next/src/server/dev/static-paths-worker.ts index df9ecf572b19..795d6bb6c355 100644 --- a/packages/next/src/server/dev/static-paths-worker.ts +++ b/packages/next/src/server/dev/static-paths-worker.ts @@ -107,7 +107,7 @@ export async function loadStaticPaths({ ] : await collectGenerateParams(components.ComponentMod.tree) - return buildAppStaticPaths({ + return await buildAppStaticPaths({ page: pathname, generateParams, configFileName: config.configFileName, @@ -122,7 +122,7 @@ export async function loadStaticPaths({ }) } - return buildStaticPaths({ + return await buildStaticPaths({ page: pathname, getStaticPaths: components.getStaticPaths, configFileName: config.configFileName,