Skip to content

Next.js run time logs not showing #6812

Discussion options

You must be logged in to vote

@kennyegun24 you're making a GET request with no param changes so it should be cached by default in production, you can try something like

export const dynamic = 'force-dynamic';

in the routes you want to always rerun or instead use cache headers like this to have set revalidation time

{
  "Cache-Control": "max-age=300, s-maxage=300, stale-while-revalidate",
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@kennyegun24
Comment options

Comment options

You must be logged in to vote
1 reply
@kennyegun24
Comment options

Answer selected by kennyegun24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants