-
+
);
}
diff --git a/apps/web/app/billing-confirmation/layout.tsx b/apps/web/app/billing-confirmation/layout.tsx
new file mode 100644
index 0000000000..dcfc3698e4
--- /dev/null
+++ b/apps/web/app/billing-confirmation/layout.tsx
@@ -0,0 +1,5 @@
+import { PosthogClientWrapper } from "../PosthogClientWrapper";
+
+export default async function AuthLayout({ children }: { children: React.ReactNode }) {
+ return
{children};
+}
diff --git a/apps/web/app/environments/[environmentId]/layout.tsx b/apps/web/app/environments/[environmentId]/layout.tsx
index 08e57cc95c..75661d3e3e 100644
--- a/apps/web/app/environments/[environmentId]/layout.tsx
+++ b/apps/web/app/environments/[environmentId]/layout.tsx
@@ -5,6 +5,7 @@ import { redirect } from "next/navigation";
import { authOptions } from "pages/api/auth/[...nextauth]";
import PosthogIdentify from "./PosthogIdentify";
import FormbricksClient from "./FormbricksClient";
+import { PosthogClientWrapper } from "../../PosthogClientWrapper";
export default async function EnvironmentLayout({ children, params }) {
const session = await getServerSession(authOptions);
@@ -18,10 +19,12 @@ export default async function EnvironmentLayout({ children, params }) {
-
- {children}
-
-
+
+
+ {children}
+
+
+
>
);
}
diff --git a/apps/web/app/invite/layout.tsx b/apps/web/app/invite/layout.tsx
new file mode 100644
index 0000000000..dcfc3698e4
--- /dev/null
+++ b/apps/web/app/invite/layout.tsx
@@ -0,0 +1,5 @@
+import { PosthogClientWrapper } from "../PosthogClientWrapper";
+
+export default async function AuthLayout({ children }: { children: React.ReactNode }) {
+ return
{children};
+}
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index 00bd4448f0..a6e776e0ea 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -1,4 +1,3 @@
-import { PosthogClientWrapper } from "@/app/PosthogClientWrapper";
import "./globals.css";
export const metadata = {
@@ -9,9 +8,7 @@ export const metadata = {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
-
-
{children}
-
+ {children}
);
}
diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx
index b6d62c05bd..bf44cc10e8 100644
--- a/apps/web/app/page.tsx
+++ b/apps/web/app/page.tsx
@@ -3,6 +3,7 @@ import { getServerSession } from "next-auth";
import { redirect } from "next/navigation";
import { authOptions } from "pages/api/auth/[...nextauth]";
import { HomeRedirect } from "./components";
+import { PosthogClientWrapper } from "./PosthogClientWrapper";
export default async function Home() {
const session = await getServerSession(authOptions);
@@ -10,9 +11,11 @@ export default async function Home() {
redirect("/auth/login");
}
return (
-
-
-
-
+
+
+
+
+
+
);
}