Hamza Ali Turi
TTCTheo's Typesafe Cult
•Created by insider on 3/16/2025 in #questions
NextJS api route not working
If its in vercel where you have deployed then look up the runtime logs, there you will see the cause of the error. It has probably something to do with environment variables.
2 replies
TTCTheo's Typesafe Cult
•Created by Hamza Ali Turi on 3/11/2025 in #questions
Revalidation for data using next.js 15 route handlers
I was able to come up with a solution, it looks like the way I was fetching the data was wrong:
here is the updated code:
9 replies
TTCTheo's Typesafe Cult
•Created by Hamza Ali Turi on 3/11/2025 in #questions
Revalidation for data using next.js 15 route handlers
It only works for server components from what I've read.
9 replies
TTCTheo's Typesafe Cult
•Created by Hamza Ali Turi on 3/11/2025 in #questions
Revalidation for data using next.js 15 route handlers
Upon someone's suggestion, I used router.refresh() but that didnt work as well. The only thing that seems to work is window.location.reload() which ends up doing a hard refresh.
9 replies