mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-14 15:07:29 +02:00
⏪ Revert unwanted auth changes (#1551)
This commit is contained in:
parent
ffafcbdb43
commit
24558c26bd
44 changed files with 651 additions and 625 deletions
|
@ -1,5 +1,4 @@
|
|||
import { waitUntil } from "@vercel/functions";
|
||||
import type { NextRequest } from "next/server";
|
||||
import { PostHog } from "posthog-node";
|
||||
|
||||
function PostHogClient() {
|
||||
|
@ -22,10 +21,3 @@ 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