File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ import { PropsWithChildren } from 'react'
22
33import { useFlag } from 'common'
44import { ClockSkewBanner } from 'components/layouts/AppLayout/ClockSkewBanner'
5- import IncidentBanner from 'components/layouts/AppLayout/IncidentBanner'
5+ import { IncidentBanner } from 'components/layouts/AppLayout/IncidentBanner'
66import { NoticeBanner } from 'components/layouts/AppLayout/NoticeBanner'
77import { OrganizationResourceBanner } from '../Organization/HeaderBanner'
88
99export const AppBannerWrapper = ( { children } : PropsWithChildren < { } > ) => {
10- const ongoingIncident = useFlag ( 'ongoingIncident' )
10+ const ongoingIncident =
11+ useFlag ( 'ongoingIncident' ) || process . env . NEXT_PUBLIC_ONGOING_INCIDENT === 'true'
1112 const showNoticeBanner = useFlag ( 'showNoticeBanner' )
1213 const clockSkewBanner = useFlag ( 'clockSkewBanner' )
1314
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Link from 'next/link'
22
33import { HeaderBanner } from 'components/interfaces/Organization/HeaderBanner'
44
5- const IncidentBanner = ( ) => {
5+ export const IncidentBanner = ( ) => {
66 return (
77 < Link href = "https://status.supabase.com" target = "_blank" rel = "noopener noreferrer" >
88 < HeaderBanner
@@ -13,5 +13,3 @@ const IncidentBanner = () => {
1313 </ Link >
1414 )
1515}
16-
17- export default IncidentBanner
Original file line number Diff line number Diff line change 123123 " AI_PRO_MODEL" ,
124124 " AI_NORMAL_MODEL" ,
125125 " SUPPORT_SUPABASE_SECRET_KEY" ,
126- " NEXT_PUBLIC_IS_NIMBUS"
126+ " NEXT_PUBLIC_IS_NIMBUS" ,
127+ " NEXT_PUBLIC_ONGOING_INCIDENT"
127128 ],
128129 "passThroughEnv" : [" CURRENT_CLI_VERSION" , " VERCEL_GIT_COMMIT_SHA" ],
129130 "outputs" : [" .next/**" , " !.next/cache/**" ]
You can’t perform that action at this time.
0 commit comments