From 8f3531148e422ef5885c923a91a3080db20d86cf Mon Sep 17 00:00:00 2001 From: eduamdev <35645733+eduamdev@users.noreply.github.com> Date: Sun, 11 Aug 2024 22:13:33 -0600 Subject: [PATCH] Upgrade @clerk/nextjs to the latest version and refactor code for compatibility --- .env.example | 4 +- app/(auth)/sign-in/[[...sign-in]]/page.tsx | 2 +- app/(auth)/sign-up/[[...sign-up]]/page.tsx | 2 +- app/components/site-header.tsx | 35 +- app/components/ui/scroll-area.tsx | 4 +- app/components/ui/select.tsx | 2 +- app/globals.css | 6 - app/layout.tsx | 18 +- .../[[...rest]]}/page.tsx | 8 +- .../reservation/components/navigate-back.tsx | 0 .../reservation/lib/dates.ts | 0 middleware.ts | 20 +- package.json | 2 +- pnpm-lock.yaml | 412 ++++-------------- 14 files changed, 114 insertions(+), 401 deletions(-) rename app/{(reservation)/reservation => reservation/[[...rest]]}/page.tsx (97%) rename app/{(reservation) => }/reservation/components/navigate-back.tsx (100%) rename app/{(reservation) => }/reservation/lib/dates.ts (100%) diff --git a/.env.example b/.env.example index 1e4f81a..bfa4bda 100644 --- a/.env.example +++ b/.env.example @@ -8,4 +8,6 @@ POSTGRES_PASSWORD="" POSTGRES_DATABASE="" NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME="" NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="" -CLERK_SECRET_KEY="" \ No newline at end of file +CLERK_SECRET_KEY="" +NEXT_PUBLIC_CLERK_SIGN_IN_URL="/sign-in" +NEXT_PUBLIC_CLERK_SIGN_UP_URL="/sign-up" \ No newline at end of file diff --git a/app/(auth)/sign-in/[[...sign-in]]/page.tsx b/app/(auth)/sign-in/[[...sign-in]]/page.tsx index 1b561f1..8795d64 100644 --- a/app/(auth)/sign-in/[[...sign-in]]/page.tsx +++ b/app/(auth)/sign-in/[[...sign-in]]/page.tsx @@ -3,7 +3,7 @@ import { SignIn } from '@clerk/nextjs'; export default function Page() { return (