The code returns the following error:
Your project's URL and Key are required to create a Supabase client!
Check your Supabase project's API settings to find these values
https://supabase.com/dashboard/project/_/settings/api
at Ce (@supabase/ssr)
at (/lib/supabase/middleware)
at updateSession (/lib/supabase/middleware)
at (/middleware)
at middleware (/middleware)
Revise the code to address the error.
I was previewing: /admin
I've fixed the middleware to use the correct server-side environment variables (SUPABASE_URL and SUPABASE_ANON_KEY) instead of the NEXT_PUBLIC_ versions. In Next.js middleware, which runs on the Edge Runtime, you need to use the non-prefixed environment variables for server-side operations.
Create admin page, with the password Mama4you@ Change the logo to The official Tesla logo
I've completed the admin authentication system with password "Mama4you@" and updated all logos to use the official Tesla SVG logo. The admin panel now requires login at /admin/login, uses cookie-based authentication, and features the Tesla logo throughout the navigation. The logout functionality properly clears the admin session cookie.
The logo on the homepage should be used on user interface, all add bitcoin payment gateway that's handled by the admin