feat : overwite buzz.sudloh.com/guide
CI / Verify application and manifests (push) Successful in 1m27s
CI / Build immutable images and deploy (push) Failing after 5m58s

This commit is contained in:
2026-09-17 21:55:16 +07:00 Unverified
parent 6698dc1302
commit 801386a8ed
31 changed files with 372 additions and 27 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
import { useEffect, useEffectEvent, useState } from "react";
import { PRESENCE_HEARTBEAT_MS } from "@/lib/presence-constants";
import { withBasePath } from "@/lib/base-path";
type VisitorCounts = {
global: number;
@@ -51,7 +52,7 @@ function useHeartbeat<T>({
const [value, setValue] = useState<T | null>(null);
const send = useEffectEvent(async (active = true) => {
try {
const response = await fetch(endpoint, {
const response = await fetch(withBasePath(endpoint), {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({