|
|
@ -199,14 +199,6 @@ export async function resolveDynamicRoutes(
|
|
|
|
undefined,
|
|
|
|
undefined,
|
|
|
|
'silent'
|
|
|
|
'silent'
|
|
|
|
)) as RouteModule
|
|
|
|
)) as RouteModule
|
|
|
|
|
|
|
|
|
|
|
|
if (!mod.config.paths) {
|
|
|
|
|
|
|
|
throw new Error(
|
|
|
|
|
|
|
|
`Invalid paths file export in ${pathsFile}. ` +
|
|
|
|
|
|
|
|
`Expects default export of an object with a "paths" property.`
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
routeModuleCache.set(pathsFile, mod)
|
|
|
|
routeModuleCache.set(pathsFile, mod)
|
|
|
|
} catch (e: any) {
|
|
|
|
} catch (e: any) {
|
|
|
|
logger.warn(`${c.yellow(`Failed to load ${pathsFile}:`)}\n${e.stack}`)
|
|
|
|
logger.warn(`${c.yellow(`Failed to load ${pathsFile}:`)}\n${e.stack}`)
|
|
|
|