mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
feat(studio): endpoint to retrieve incident status (#41355)
Incident status banners/alerts should be automatically determined from the status page, rather than being manually configured. Adds a new endpoint, /api/incident-status, to return information about active incidents. This information is fetched from the StatusPage API. The endpoint is cached to reduce number of third-party API requests. Co-authored-by: Ali Waseem <waseema393@gmail.com>
This commit is contained in:
1 parent
23064c0b5b
commit
657ca2d97c
4 files changed
+164
-2
No files matched your search
@@ -119,3 +119,13 @@ export function commaSeparatedStringIntoArray(value: string): string[] {
|
||||
.map((v) => v.trim())
|
||||
.filter(Boolean)
|
||||
}
|
||||
|
||||
export class InternalServerError extends Error {
|
||||
constructor(
|
||||
message: string,
|
||||
public details?: Record<string, unknown>
|
||||
) {
|
||||
super(message)
|
||||
this.name = 'InternalServerError'
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user