mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-17 08:17:26 +02:00
⬆️ Bump vitest from 2.1.1 to 2.1.9 (#1548)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Luke Vella <me@lukevella.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
480f1a03d1
commit
ffafcbdb43
46 changed files with 729 additions and 738 deletions
|
@ -1,4 +1,5 @@
|
|||
import { waitUntil } from "@vercel/functions";
|
||||
import type { NextRequest } from "next/server";
|
||||
import { PostHog } from "posthog-node";
|
||||
|
||||
function PostHogClient() {
|
||||
|
@ -21,3 +22,10 @@ export function posthogApiHandler() {
|
|||
console.error("Failed to flush PostHog events:", error);
|
||||
}
|
||||
}
|
||||
export function withPosthog(handler: (req: NextRequest) => Promise<Response>) {
|
||||
return async (req: NextRequest) => {
|
||||
const res = await handler(req);
|
||||
posthogApiHandler();
|
||||
return res;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue