We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a3743a + e645a54 commit 10c7afdCopy full SHA for 10c7afd
app/middleware.ts
@@ -0,0 +1,10 @@
1
+import { NextResponse } from 'next/server'
2
+import type { NextRequest } from 'next/server'
3
+
4
+import { captureRegistryEvent } from '@wandry/analytics-sdk';
5
6
+export function middleware(request: NextRequest) {
7
+ captureRegistryEvent(request, process.env.NEXT_PUBLIC_WANDRY_REGISTRY_TOKEN || '');
8
9
+ return NextResponse.redirect(new URL('/home', request.url))
10
+}
0 commit comments