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 createSupabaseMiddlewareClient (/app/lib/supabase/server)
at Object.middleware [as handler] (/middleware)
Revise the code to address the error.
I was previewing: /dashboard
I can see the issue. The error is occurring in the middleware because it's trying to create a Supabase client even when the environment variables aren't configured. Let me fix the middleware and related files to handle missing Supabase configuration gracefully.
The key changes I made:
Now the application will work without throwing errors even when Supabase environment variables are not configured:
The app should now load successfully at /dashboard and show you a configuration message with instructions on how to set up Supabase.
The error is related to the viem library which is likely being imported by the Solana wallet adapter or MetaMask integration. Let me fix this by updating the wallet integration and removing dependencies that might be causing issues.
The key changes I made to fix the viem error:
The app should now load without the viem error. The wallet functionality will still work:
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 createSupabaseMiddlewareClient (/app/lib/supabase/server)
at Object.middleware [as handler] (/middleware)
Revise the code to address the error.
I was previewing: /