Skip to content

Open-source status page, incident response and uptime monitoring

chore: swr delta (#1033)

Maximilian Kaskea07f01c91281
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 8fdaadd5f..e96f1c46c 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: {