fix: use matcher in middleware (#5304)

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-11-03 14:51:43 +00:00
1 parent 6a002b900f
commit 4c24614e06
1 file changed
+4
+4
View File
@@ -39,6 +39,10 @@ const middleware: NextMiddleware = async (req) => {
return NextResponse.next();
};
export const config = {
matcher: ["/api/collect-events/:path*", "/api/auth/:path*", "/apps/routing_forms/:path*", "/:path*/embed"],
};
export default collectEvents({
middleware,
...nextCollectBasicSettings,