Openstatus www.openstatus.dev

๐Ÿ› redirect empty page (#127)

* ๐Ÿ› redirect empty page

* ๐Ÿ› redirect empty page

authored by

Thibault Le Ouay and committed by
GitHub
8bec1a0f eb179c59

+5 -1
+5 -1
apps/web/src/components/status-page/monitor-list.tsx
··· 12 12 }: { 13 13 monitors: z.infer<typeof selectMonitorSchema>[]; 14 14 }) => { 15 + const url = 16 + process.env.NODE_ENV === "development" 17 + ? "http://localhost:3000" 18 + : "https://www.openstatus.dev"; 15 19 return ( 16 20 <div className="grid gap-4"> 17 21 {Boolean(monitors.length) ? ( ··· 28 32 description="Fill your status page with monitors." 29 33 action={ 30 34 <Button asChild> 31 - <Link href="/app">Go to Dashboard</Link> 35 + <Link href={`${url}/app`}>Go to Dashboard</Link> 32 36 </Button> 33 37 } 34 38 />