Skip to content

Commit

Permalink
make sure to await
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Mar 30, 2023
1 parent ae1baae commit 3003593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/src/server/dev/static-paths-worker.ts
Expand Up @@ -107,7 +107,7 @@ export async function loadStaticPaths({
]
: await collectGenerateParams(components.ComponentMod.tree)

return buildAppStaticPaths({
return await buildAppStaticPaths({
page: pathname,
generateParams,
configFileName: config.configFileName,
Expand All @@ -122,7 +122,7 @@ export async function loadStaticPaths({
})
}

return buildStaticPaths({
return await buildStaticPaths({
page: pathname,
getStaticPaths: components.getStaticPaths,
configFileName: config.configFileName,
Expand Down

0 comments on commit 3003593

Please sign in to comment.