Skip to content

Open-source status page, incident response and uptime monitoring

🐛 redirect empty page (#127)

Thibault Le Ouay8bec1a0ff25c
diff --git a/apps/web/src/components/status-page/monitor-list.tsx b/apps/web/src/components/status-page/monitor-list.tsx
index f6e0763ec..a6e516597 100644
--- a/apps/web/src/components/status-page/monitor-list.tsx
+++ b/apps/web/src/components/status-page/monitor-list.tsx
@@ -12,6 +12,10 @@ export const MonitorList = ({
}: {
monitors: z.infer<typeof selectMonitorSchema>[];
}) => {
+ const url =
+ process.env.NODE_ENV === "development"
+ ? "http://localhost:3000"
+ : "https://www.openstatus.dev";
return (
<div className="grid gap-4">
{Boolean(monitors.length) ? (
@@ -28,7 +32,7 @@ export const MonitorList = ({
description="Fill your status page with monitors."
action={
<Button asChild>
- <Link href="/app">Go to Dashboard</Link>
+ <Link href={`${url}/app`}>Go to Dashboard</Link>
</Button>
}
/>