Skip to content

Commit d7f0a13

Browse files
committed
fix: fix missing await keyword
1 parent 474bdb1 commit d7f0a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/pages/getStaticProps/setup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const setup = async ({ functionsPath, publishPath }) => {
3838

3939
// Skip if we have already set up a function for this file
4040
// or if the source route has a fallback (handled by getStaticPropsWithFallback)
41-
if (filePathsDone.includes(filePath) || isRouteWithFallback(srcRoute)) return
41+
if (filePathsDone.includes(filePath) || (await isRouteWithFallback(srcRoute))) return
4242

4343
logItem(filePath)
4444
await setupNetlifyFunctionForPage({ filePath, functionsPath })

0 commit comments

Comments
 (0)