From 40634e58b37cb4adc8ee9ae96e1766e66bd37635 Mon Sep 17 00:00:00 2001 From: Lucid Date: Sat, 6 Dec 2025 17:48:52 -0500 Subject: [PATCH] fix urql url --- src/app/layout.tsx | 2 +- src/app/page.tsx | 23 +++++++++++++++++++++-- src/components/charts/LineChart.tsx | 4 ++-- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 8556477..983ba80 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -20,7 +20,7 @@ export default function RootLayout({ isClient: typeof window !== "undefined" }); const client = createClient({ - url: process.env.NEXT_PUBLIC_GRAPHQL_URL || "", + url: "/api/graphql", exchanges: [cacheExchange, ssr, fetchExchange], suspense: true }); diff --git a/src/app/page.tsx b/src/app/page.tsx index 84b898e..4c98e94 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -148,7 +148,7 @@ export default function Home() { - {totalGroups && ( + {totalGroups ? ( + ) : ( + )} - {todayStats && ( + {todayStats ? ( + ) : ( + )} diff --git a/src/components/charts/LineChart.tsx b/src/components/charts/LineChart.tsx index 4cabc1e..8bad303 100644 --- a/src/components/charts/LineChart.tsx +++ b/src/components/charts/LineChart.tsx @@ -32,7 +32,7 @@ const LineChartComponent = ({ axisLine={false} dataKey={chart.key("day")} stroke={chart.color("border")} - // label={{ value: "Day", position: "bottom" }} + // label={{ value: "Day", position: "bottom" }} />