project_next_14_ai_prompt_sharing
project_next_14_ai_prompt_sharing copied to clipboard
/api/prompt getting cached in Vercel
All of the other API's are working fine on production but the /api/prompt is getting cached only on the production environment but not on the local environment
Same Here
is there any solution to this problem?
You can disable caching by adding this line in your api/prompt/route.ts
export const dynamic = "force-dynamic";
you can check options here