Skip to content

Commit

Permalink
feat: ✨ add posthog provider to private routes
Browse files Browse the repository at this point in the history
  • Loading branch information
neopromic committed Nov 22, 2024
1 parent a5103f0 commit 16f32fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/(authenticated)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import Header from "../_components/Header";
import { auth } from "@clerk/nextjs/server";
import { redirect } from "next/navigation";
import { PostHogProvider } from "../_lib/providers";

export default async function AuthenticatedLayout({
children,
Expand All @@ -15,9 +16,9 @@ export default async function AuthenticatedLayout({
}

return (
<>
<PostHogProvider>
<Header isEnabled />
<div className="flex flex-col overflow-hidden">{children}</div>
</>
</PostHogProvider>
);
}

0 comments on commit 16f32fc

Please sign in to comment.