Skip to content

Commit d1cf513

Browse files
committed
fix(runtime): limit dynamic fallback output matching to API routes
1 parent 4be49cd commit d1cf513

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/runtime/server.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3257,8 +3257,14 @@ function resolveFunctionOutput(
32573257
) {
32583258
continue;
32593259
}
3260+
if (!isApiPathname(candidatePathname, basePath, runtimeI18n)) {
3261+
continue;
3262+
}
32603263

32613264
for (const matcher of dynamicOutputMatchers) {
3265+
if (!isApiRoutePathname(matcher.pathname)) {
3266+
continue;
3267+
}
32623268
const dynamicParams = matchDynamicOutputPathname(
32633269
candidatePathname,
32643270
matcher

0 commit comments

Comments
 (0)