Can't get updated data after update data in production
hello, im using next js with prisma orm and SWR with axios for fetching from client and free tier neon database
in my next js app, after updating the data and revalidate the data using swr, the data that i get is old data, this only happen in production mode even the database data is updated.
but if in dev mode, its updated succesfully and always get new data
this is what i already tried:
- increasing or disable connection timeout and pool timeout
- using pooled connection and direct connection url
any suggestions?
in my next js app, after updating the data and revalidate the data using swr, the data that i get is old data, this only happen in production mode even the database data is updated.
but if in dev mode, its updated succesfully and always get new data
this is what i already tried:
- increasing or disable connection timeout and pool timeout
- using pooled connection and direct connection url
any suggestions?
