Skip to content

Commit 85aed59

Browse files
committed
fix: correct regex matcher
1 parent f1ae602 commit 85aed59

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const getRscDataRouter = ({ routes: staticRoutes, dynamicRoutes }: Preren
4141

4242
const dynamicRouteMatcher = Object.values(dynamicRoutes)
4343
.filter(({ dataRoute }) => dataRoute.endsWith('.rsc'))
44-
.map(({ dataRouteRegex }) => new RegExp(dataRouteRegex))
44+
.map(({ routeRegex }) => new RegExp(routeRegex))
4545

4646
const matchesDynamicRscDataRoute = (pathname: string) => {
4747
return dynamicRouteMatcher.some((matcher) => matcher.test(pathname))

0 commit comments

Comments
 (0)