From d7f0a13350689209972c6e2fa45266c030a62a9b Mon Sep 17 00:00:00 2001 From: ehmicky Date: Thu, 11 Mar 2021 20:31:21 +0100 Subject: [PATCH] fix: fix missing `await` keyword --- src/lib/pages/getStaticProps/setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/pages/getStaticProps/setup.js b/src/lib/pages/getStaticProps/setup.js index 13f47a6459..9323be4b8d 100644 --- a/src/lib/pages/getStaticProps/setup.js +++ b/src/lib/pages/getStaticProps/setup.js @@ -38,7 +38,7 @@ const setup = async ({ functionsPath, publishPath }) => { // Skip if we have already set up a function for this file // or if the source route has a fallback (handled by getStaticPropsWithFallback) - if (filePathsDone.includes(filePath) || isRouteWithFallback(srcRoute)) return + if (filePathsDone.includes(filePath) || (await isRouteWithFallback(srcRoute))) return logItem(filePath) await setupNetlifyFunctionForPage({ filePath, functionsPath })