vincealwynn
vincealwynn
TTCTheo's Typesafe Cult
Created by 4b47 on 2/9/2025 in #questions
Fetching data after Vercel deploy
I don't know if we encountered the same bug but I happened to encounter a bug in production where my newly added records appear on my database but the latest data is not getting fetched, which i solved by adding the code below on the page.tsx of the route.
export const dynamic = 'force-dynamic'
export const dynamic = 'force-dynamic'
Next.js by default statically renders every route so, by adding that code it makes the component dynamic.
4 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/5/2023 in #questions
Credentials are not creating a session
Here is what is stated on the docs. "Credentials provider can only be used if JSON Web Tokens are enabled for sessions." https://next-auth.js.org/providers/credentials
9 replies