TomasioLTOriginal post
Web Developer
Hello,
When I developed locally all sign-in options works properly - simple email sign in option, several oauth sign in with providers ( Google, Github, Discord).
But when I deployed it to vercel, when I click to any sign in option ( Email sign -in option works), it always gives me an error.
.env local variables made with NEXT prefix, also tried by adding manualy seperate and as a whole .env file
Used this tutorial as guidance for Next.js SSR auth: https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1
Summary
Developers facing issues with OAuth sign-in options deployment on Vercel using NextJS. Error received: `AppwriteException: Invalid redirect`. Local development works fine. Tried different configurations for .env variables, followed a Next.js SSR auth tutorial.
Solution: Check the redirect URLs and ensure they are correct for OAuth sign-in providers in Vercel settings.