fix: print errors when importing an invalid dynamic route

pull/3201/head
Arianrhod Sandlot 2 years ago
parent 237ad859a9
commit 59dc2bd5a4
No known key found for this signature in database
GPG Key ID: 630E0976B1AD4FAF

@ -189,9 +189,10 @@ export async function resolveDynamicRoutes(
console.warn( console.warn(
c.yellow( c.yellow(
`Invalid paths file export in ${pathsFile}. ` + `Invalid paths file export in ${pathsFile}. ` +
`Expects default export of an object with a "paths" property.` `Expects default export of an object with a "paths" property. Error in this file:`
) )
) )
console.warn(e)
continue continue
} }
} }

Loading…
Cancel
Save