fix urql url
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 6m49s

This commit is contained in:
2025-12-06 17:48:52 -05:00
parent 92675579b9
commit 40634e58b3
3 changed files with 24 additions and 5 deletions

View File

@@ -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
});

View File

@@ -148,7 +148,7 @@ export default function Home() {
</VStack>
</VStack>
<VStack gap={10} w="100%">
{totalGroups && (
{totalGroups ? (
<StatsList
title="Total Stats"
loading={totalStatsFetching || totalGroupsFetching}
@@ -158,8 +158,18 @@ export default function Home() {
commands={totalStats.getTotalStats.commandResponses}
triggers={totalStats.getTotalStats.timesTriggered}
/>
) : (
<StatsList
title="Total Stats"
loading={totalStatsFetching || totalGroupsFetching}
error={totalStatsError || totalGroupsError}
groups={0}
links={0}
commands={0}
triggers={0}
/>
)}
{todayStats && (
{todayStats ? (
<StatsList
title="Today's Stats"
loading={todaysStatsFetching}
@@ -168,6 +178,15 @@ export default function Home() {
commands={todayStats.getTodayStats.commandResponses}
triggers={todayStats.getTodayStats.timesTriggered}
/>
) : (
<StatsList
title="Today's Stats"
loading={todaysStatsFetching}
error={todaysStatsError}
links={0}
commands={0}
triggers={0}
/>
)}
</VStack>
<VStack w="95%" gap="5vh">

View File

@@ -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" }}
/>
<YAxis
width="auto"
@@ -40,7 +40,7 @@ const LineChartComponent = ({
tickLine={false}
tickMargin={10}
stroke={chart.color("border")}
// label={{ value: label, position: "left", angle: -90 }}
// label={{ value: label, position: "left", angle: -90 }}
/>
<Tooltip
animationDuration={100}