Skip to content

Commit 97b3e31

Browse files
committed
fix: routes with null data routes can be filtered now
1 parent cac889c commit 97b3e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/templates/edge-shared/rsc-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const rscifyPath = (route: string) => {
3535
export const getRscDataRouter = ({ routes: staticRoutes, dynamicRoutes }: PrerenderManifest): EdgeFunction => {
3636
const staticRouteSet = new Set(
3737
Object.entries(staticRoutes)
38-
.filter(([, { dataRoute }]) => dataRoute.endsWith('.rsc'))
38+
.filter(([, { dataRoute }]) => dataRoute?.endsWith('.rsc'))
3939
.map(([route]) => route),
4040
)
4141

0 commit comments

Comments
 (0)