( match: BuildMatch, requestPath: string, devServer: DevServer, vercelConfig: VercelConfig )
| 3345 | } |
| 3346 | |
| 3347 | async function findMatchingRoute( |
| 3348 | match: BuildMatch, |
| 3349 | requestPath: string, |
| 3350 | devServer: DevServer, |
| 3351 | vercelConfig: VercelConfig |
| 3352 | ): Promise<RouteResult | void> { |
| 3353 | const reqUrl = `/${requestPath}`; |
| 3354 | for (const buildResult of match.buildResults.values()) { |
| 3355 | if (!Array.isArray(buildResult.routes)) continue; |
| 3356 | const route = await devRouter( |
| 3357 | reqUrl, |
| 3358 | undefined, |
| 3359 | buildResult.routes, |
| 3360 | devServer, |
| 3361 | vercelConfig |
| 3362 | ); |
| 3363 | if (route.found) { |
| 3364 | return route; |
| 3365 | } |
| 3366 | } |
| 3367 | } |
| 3368 | |
| 3369 | function findAsset( |
| 3370 | match: BuildMatch, |
no test coverage detected