I'm facing an issue with my Next.js 13 application deployed on Vercel, which utilizes Firebase as the backend and Next-Auth for authentication, specifically using the Google provider. During development, I set the authorized redirect URL in the Google Cloud Console as "http://localhost:3000/api/auth/callback/google", and everything worked fine. However, when deploying the application to production and updating the authorized redirect URL to "https://cloud-storage-mu.vercel.app/api/auth/callback/google", I encountered a "Server error - There is a problem with the server configuration" message when attempting to sign in with Google.
Additionally, I've used the "cloud-storage-mu.vercel.app" from my deployed application's url. If it is wrong, How to set the production url in the above case ?
Any help on this would be appreciated.