From b232414d228223f22c1cc52a543c9d5e1b820002 Mon Sep 17 00:00:00 2001 From: Vega Date: Sat, 22 Jun 2024 20:23:47 +0800 Subject: [PATCH 1/2] Update index.tsx Fix #41: Compilation failure leading to unsuccessful deployment. --- pages/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 87a1d40..2bc9adc 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -19,6 +19,8 @@ export default function Home({ }: { state: string monitors: MonitorTarget[] + tooltip?: string + statusPageLink?: string }) { let state; if (stateStr !== undefined) { @@ -103,8 +105,8 @@ export async function getServerSideProps() { return { id: monitor.id, name: monitor.name, - tooltip: monitor?.tooltip, - statusPageLink: monitor?.statusPageLink + tooltip: 'Default Tooltip Value', //monitor?.tooltip, + statusPageLink: 'statusPageLink', //monitor?.statusPageLink } }) From c4da5f6c1543de2da72509264aa75762d6f1c8b1 Mon Sep 17 00:00:00 2001 From: lyc8503 Date: Sun, 30 Jun 2024 16:08:23 +0800 Subject: [PATCH 2/2] Update index.tsx --- pages/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 2bc9adc..1becbac 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -105,8 +105,10 @@ export async function getServerSideProps() { return { id: monitor.id, name: monitor.name, - tooltip: 'Default Tooltip Value', //monitor?.tooltip, - statusPageLink: 'statusPageLink', //monitor?.statusPageLink + // @ts-ignore + tooltip: monitor?.tooltip, + // @ts-ignore + statusPageLink: monitor?.statusPageLink } })