Help setting up primsa + planetscale with t3 app.
I have followed the docs when trying to setup a new t3 app and using all the default values everything worked fine.
I then tried adding a planetscale database to the project.
From what I understand everything is correct, but when trying to create a post it doesn't appear to save it in the database. I am seeing no errors from the UI or in the npm run dev output in the terminal so unsure what the problem appears to be.
I have:
Updated my .env file to have the database connection string.
Added next auth info & discord app info
Run
npx prisma db push
And can see the tables have populated in the planetscale web UI.
Is there some other step I have missed to enable the database upserts?1 Reply
Bump.
Looks like the form submit is failing somewhere, but without any errors or logs I am not understanding what the problem is.
Here is a video of me trying to console log around and in the mutation.
https://youtu.be/l0Z8kppWPLQ
Any idea how I can turn on logging for this part of the app to see what the problem is?
Bump.
I didn't figure out what the issue was.
I ended up deleting the t3 app on my machine and setting up a new one without the next experimental features.
I created my own CreatePost component: