The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
reuse providers in auth layout
Steven Tey1bb9fc58569d
diff --git a/apps/web/app/app.dub.co/(auth)/layout.tsx b/apps/web/app/app.dub.co/(auth)/layout.tsxindex cb0aa97519..740d0c5ab1 100644--- a/apps/web/app/app.dub.co/(auth)/layout.tsx+++ b/apps/web/app/app.dub.co/(auth)/layout.tsx@@ -1,7 +1,7 @@import HelpPortal from "@/ui/layout/help";import { Background } from "@dub/ui";import { ReactNode } from "react";-import Providers from "./providers";+import Providers from "../(dashboard)/providers";export const runtime = "edge";diff --git a/apps/web/app/app.dub.co/(auth)/providers.tsx b/apps/web/app/app.dub.co/(auth)/providers.tsxdeleted file mode 100644index 7c5da6cc70..0000000000--- a/apps/web/app/app.dub.co/(auth)/providers.tsx+++ /dev/null@@ -1,14 +0,0 @@-"use client";--import { Analytics as VercelAnalytics } from "@vercel/analytics/react";-import { SessionProvider } from "next-auth/react";-import { ReactNode } from "react";--export default function Providers({ children }: { children: ReactNode }) {- return (- <SessionProvider>- {children}- <VercelAnalytics />- </SessionProvider>- );-}