CP3
TTCTheo's Typesafe Cult
•Created by CP3 on 8/12/2023 in #questions
Prisma postgres DB not updating
Hello guys.
I'm working on auth for my nextjs app built with nextauth and prisma. Initially, I created the project using a local sqlite db and everything worked properly. But when I switched to a postgres db with railway.app it stopped working properly.
When I make a post request to create a new user account from Insomnia(an API Client), the db updates with the new user. But when I make that same request through the sign up form UI, the db doesn't update even after the fetch request returns an ok response.
This is my signup function:
This is my
api/user/route.ts
file:
4 replies