fix: use matcher in middleware (#5304)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Udit Takkar
2022-11-03 14:51:43 +00:00
committed by GitHub
co-authored by Peer Richelsen kodiakhq[bot]
parent 6a002b900f
commit 4c24614e06
+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,