Skip to content

Commit

Permalink
chore: swr delta (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske authored Oct 5, 2024
1 parent 6fc0430 commit a07f01c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ const nextConfig = {
// "better-sqlite3"
],
optimizePackageImports: ["@tremor/react"],
/**
* The default stale revalidate time for SWR requests is 1year.
* We can't rely on the default because the status pages will always return the
* STALE data before revalidate.
* @link https://nextjs.org/docs/app/api-reference/next-config-js/swrDelta
*/
swrDelta: 120,
},
logging: {
fetches: {
Expand Down

0 comments on commit a07f01c

Please sign in to comment.