diff --git a/src/routes/stats/[ign]/[[profile]]/+page.server.ts b/src/routes/stats/[ign]/[[profile]]/+page.server.ts index 167c0a574..1caead9be 100644 --- a/src/routes/stats/[ign]/[[profile]]/+page.server.ts +++ b/src/routes/stats/[ign]/[[profile]]/+page.server.ts @@ -1,11 +1,9 @@ import type { PageServerLoad } from "./$types"; -const baseAPI = "http://localhost:5173/api/stats"; - export const load = (async ({ params, fetch }) => { const { ign, profile } = params; - const data = fetch(`${baseAPI}/${ign}/${profile}`) + const data = fetch(`/api/stats/${ign}/${profile}`) .then((res) => res.json()) .catch((err) => { console.error(err);