Skip to content
Back

[SOLVED] Appwriteexception: invalid redirect at e.redirect

  • 0
  • Self Hosted
  • Web
  • Cloud
ʌɓɓʌşïşähãɓ
13 Aug, 2025, 15:20

I've been following this documentation on my app: https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-7

On Localhost and local development, it's working fine, but when I deploy and push code on Vercel and AppWrite Cloud so it gives me an error on production

AppwriteException: Invalid redirect at e.redirect (.next/server/chunks/774.js:55:106603) at async N (.next/server/chunks/258.js:1:5081) { code: 400, type: '', response: '', digest: '2748171200' }

TL;DR
The developer encountered an 'AppwriteException: invalid redirect' error when deploying their project on Vercel and AppWrite Cloud. They added the Vercel domain to their AppWrite project but faced issues verifying the DNS record. The solution was to add the Vercel domain as a platform in AppWrite and follow the documentation provided.
D5
13 Aug, 2025, 15:31

This is the right place. Next time avoid cross posting 😅

Kenny
13 Aug, 2025, 15:37

have you added your vercel domain as a platform in appwrite?

ʌɓɓʌşïşähãɓ
13 Aug, 2025, 15:37

So please don't just tell me, also help me and give me the solution to my problem :appwritecheers:

ʌɓɓʌşïşähãɓ
13 Aug, 2025, 15:40

My Vercel domain is https://abbasi-storeit-theta.vercel.app/ I added it, but he is asking for verification of dns record, but I don't know how to verify the DNS of this vercel domain Except for these domains, other providers I know how to verify them, but on vercel this domain I might be a little bit confused

ʌɓɓʌşïşähãɓ
13 Aug, 2025, 15:42

@Kenny

Kenny
13 Aug, 2025, 15:43

That's not what I'm talking about

On the main page of your project you should see a button to add a platform, you'll put the vercel domain there

Kenny
13 Aug, 2025, 15:43

that is like whitelisting that domain to use stuff on your appwrite project to prevent attacks.

ʌɓɓʌşïşähãɓ
13 Aug, 2025, 15:43

okay let me check it out

ʌɓɓʌşïşähãɓ
13 Aug, 2025, 15:45

@Kenny I add the project domain in the project then what I could do next

Kenny
13 Aug, 2025, 15:46

try and see if the error still persists?...

ʌɓɓʌşïşähãɓ
13 Aug, 2025, 15:47

Thanks Bro, the error is resolved :appwritemandancing: :appwritecheers:

Kenny
13 Aug, 2025, 15:51

[SOLVED] Appwriteexception: invalid redirect at e.redirect

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more