diff --git a/client/src/actions/shorten.ts b/client/src/actions/shorten.ts index 58dd4f0..ca685c5 100644 --- a/client/src/actions/shorten.ts +++ b/client/src/actions/shorten.ts @@ -12,7 +12,7 @@ async function makeRequest(url: string): Promise { let body; try { - const response = await fetch("http://localhost:4000/", { + const response = await fetch("/", { headers: { Accept: "application/json", "Content-Type": "application/json",