"NO-STORE" IS NOT WORKING FOR ME
Unanswered
Stony gall posted this in #help-forum
Stony gallOP
In production when making a call to the database it always returns the same thing even if I modify it
10 Replies
@Stony gall In production when making a call to the database it always returns the same thing even if I modify it
why are you fetching an api route in a server component?
@Stony gall In production when making a call to the database it always returns the same thing even if I modify it
if I am not wrong, nextjs is caching the api route itself not the response
Cão Fila de São Miguel
your syntax is correct.
Please check nextjs version and your caller component. Try using
no-cache@Stony gall In production when making a call to the database it always returns the same thing even if I modify it
you should also try calling the db directly from the server component
instead of using an api route
it's redundant and uneccary
he must have already wrote backend
@!=tgt you should also try calling the db directly from the server component
Stony gallOP
present my backend directly in the component. It worked but it's not what I'm looking for, there is a solution to implement it, I showed you
@Cão Fila de São Miguel Please check nextjs version and your caller component. Try using `no-cache`
Stony gallOP
It didn't work for me