From a07f01c91281c9ebaff42a1da1430edc0b32d095 Mon Sep 17 00:00:00 2001 From: Maximilian Kaske <56969857+mxkaske@users.noreply.github.com> Date: Sat, 5 Oct 2024 09:28:55 +0200 Subject: [PATCH] chore: swr delta (#1033) --- apps/web/next.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 8fdaadd5f6..e96f1c46cc 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -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: {