diff --git a/src/util/api.ts b/src/util/api.ts index 43536d3..710e195 100644 --- a/src/util/api.ts +++ b/src/util/api.ts @@ -24,7 +24,7 @@ export interface AuthResponse { } export async function getPosts(): Promise { - const res = await fetch("/api/posts"); + const res = await fetch(URL + "/api/posts"); const data = await res.json(); return data; }