Next.js Discord

Discord Forum

Searchparams don't read id from url

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
Hello,

Working on a learning project in Next and i noticed that in prod server the searchparams dont read the value from the given url.
I know this for a fact because Prisma returns an error that it can't find the userID which is meant to be received from the email verification url.

Here is the code for searchparams usage:
https://github.com/andrejmoltok/oceans5js/blob/main/src/app/(public)/signup/verify/page.tsx

And this is where i read the id from the url patameter:
https://github.com/andrejmoltok/oceans5js/blob/main/src/actions/emailVerify/verifyEmailCode.ts

0 Replies