The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): suppress stale notice banner on old client bundles (#45653)
Ali Waseem551f33444675
diff --git a/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx b/apps/studio/components/layouts/AppLayout/NoticeBanner.tsxindex aa62bb8af59..ccd6fee5974 100644--- a/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx+++ b/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx@@ -19,6 +19,10 @@ import { HeaderBanner } from '@/components/interfaces/Organization/HeaderBanner'import { InlineLink, InlineLinkClassName } from '@/components/ui/InlineLink'import { useLocalStorageQuery } from '@/hooks/misc/useLocalStorage'+// Update this whenever the banner content below changes so old client bundles+// stop displaying outdated notices after the relevant date passes.+const BANNER_EXPIRES_AT = new Date('2026-07-04T00:00:00Z')+/*** Used to display urgent notices that apply for all users, such as maintenance windows.*/@@ -30,7 +34,12 @@ export const NoticeBanner = () => {false)- if (router.pathname.includes('sign-in') || !isSuccess || bannerAcknowledged) {+ if (+ Date.now() >= BANNER_EXPIRES_AT.getTime() ||+ router.pathname.includes('sign-in') ||+ !isSuccess ||+ bannerAcknowledged+ ) {return null}