feat : overwite buzz.sudloh.com/guide
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user