Back

[SOLVED] Appwrite-node not working in prod with vercel, but works successfully on my local

  • 0
  • Cloud
Nikky
21 Oct, 2024, 11:25

I'm using appwrite-node with Next.js 15. Im using email otp with node sdk and It works successfully locally but encounters issues when deployed to Vercel. Could I be missing a configuration setting? It also says "ERR_TOO_MANY_REDIRECTS".

TL;DR
Title: [SOLVED] Appwrite-node issue on Vercel prod vs. local; Message: Appwrite-node with Next.js 15 works locally but not on Vercel prod. Fixed by adding `export const dynamic = "force-dynamic"` to statically rendered route. Issue: "ERR_TOO_MANY_REDIRECTS" encountered.
Nikky
21 Oct, 2024, 11:45

Fixed: Added export const dynamic = "force-dynamic" to statically rendered route.

Nikky
21 Oct, 2024, 11:45

[SOLVED] Appwrite-node not working in prod with vercel, but works successfully on my local

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