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 })