Fix: subdirectory deployment (#2205)

This commit is contained in:
Isidro Osoria 2023-10-18 23:49:42 +08:00 committed by GitHub
parent 5f7891d8db
commit b8eda91005
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 42 additions and 41 deletions

View file

@ -3,7 +3,7 @@ import useSWR from "swr";
export default function Ping({ group, service, style }) {
const { t } = useTranslation();
const { data, error } = useSWR(`/api/ping?${new URLSearchParams({ group, service }).toString()}`, {
const { data, error } = useSWR(`api/ping?${new URLSearchParams({ group, service }).toString()}`, {
refreshInterval: 30000
});