Data from API router doesn’t match database
Unanswered
Oriental chestnut gall wasp posted this in #help-forum
Oriental chestnut gall waspOP
I am using next JS api router and vercel/postgres but I found the data from the API response doesn’t match the database.
In /api/posts:
I get the data from database by
And I check in the client, it doesn’t match the database data
The first image is from database second is the response in Dev panel
In /api/posts:
I get the data from database by
SELECT * FROM posts and response the dataAnd I check in the client, it doesn’t match the database data
The first image is from database second is the response in Dev panel
1 Reply
Oriental chestnut gall waspOP
It works fine in the dev.The bug is in production. I deployed it to vercel.