Skip to content

Commit 134048c

Browse files
cursoragentdobrac
andcommitted
derive status api url
Co-authored-by: Jakub Dobry <dobrac@users.noreply.github.com>
1 parent 25a5a8b commit 134048c

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
7171
### When enabled, the E2B status is read from the incident.io summary API
7272
# NEXT_PUBLIC_INCLUDE_STATUS_INDICATOR=0
7373
# NEXT_PUBLIC_STATUS_PAGE_URL=https://statuspage.incident.io/e2b-service
74-
# NEXT_PUBLIC_STATUS_PAGE_SUMMARY_URL=https://statuspage.incident.io/e2b-service/api/v2/summary.json
7574

7675
### Set to 1 to use mock data
7776
# NEXT_PUBLIC_MOCK_DATA=0

src/features/dashboard/layouts/status-indicator.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ export function getStatusPageUrl() {
2727
}
2828

2929
export function getStatusPageSummaryUrl(statusPageUrl: string) {
30-
const configuredSummaryUrl =
31-
process.env.NEXT_PUBLIC_STATUS_PAGE_SUMMARY_URL?.trim()
32-
33-
if (configuredSummaryUrl) return configuredSummaryUrl
34-
3530
return `${statusPageUrl}/api/v2/summary.json`
3631
}
3732

src/lib/env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export const clientSchema = z.object({
5656
NEXT_PUBLIC_INCLUDE_REPORT_ISSUE: z.string().optional(),
5757
NEXT_PUBLIC_INCLUDE_STATUS_INDICATOR: z.string().optional(),
5858
NEXT_PUBLIC_STATUS_PAGE_URL: z.url().optional(),
59-
NEXT_PUBLIC_STATUS_PAGE_SUMMARY_URL: z.url().optional(),
6059
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: z.string().optional(),
6160
NEXT_PUBLIC_SCAN: z.string().optional(),
6261
NEXT_PUBLIC_MOCK_DATA: z.string().optional(),

0 commit comments

Comments
 (0)