diff --git a/app/(transition)/(root)/login/page.tsx b/app/(transition)/(root)/login/page.tsx index 48726b5..6e3e00c 100644 --- a/app/(transition)/(root)/login/page.tsx +++ b/app/(transition)/(root)/login/page.tsx @@ -19,6 +19,8 @@ const AuthPage: NextPage = () => { useEffect(() => { const url = new URL(window.location.href); + url.pathname = "/"; + url.hash = ""; setUrl(url.toString()); // eslint-disable-next-line @typescript-eslint/no-floating-promises diff --git a/src/components/Auth/clerk.tsx b/src/components/Auth/clerk.tsx deleted file mode 100644 index 8dcdd20..0000000 --- a/src/components/Auth/clerk.tsx +++ /dev/null @@ -1,27 +0,0 @@ -"use client"; -import { ClerkProvider } from "@clerk/clerk-react"; -import React from "react"; - -type Props = { - children: React.ReactNode; -}; - -export const Clerk = ({ children }: Props) => { - return ( - { - const splitted = url.host.split("."); - return [splitted.at(-2), splitted.at(-1)].join("."); - }} - publishableKey={process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY!} - > - {children} - - ); -};