From 9731108289b6d3179bfae0c0b5ca0c761be288c4 Mon Sep 17 00:00:00 2001 From: Emma Fredriksen Date: Sun, 1 Nov 2026 21:18:26 +0100 Subject: [PATCH] fix: update fetch paths --- frontend/src/components/AddToGalleryModal.tsx | 2 +- frontend/src/pages/ProfilePage.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/AddToGalleryModal.tsx b/frontend/src/components/AddToGalleryModal.tsx index ca0f28f..f50b902 100644 --- a/frontend/src/components/AddToGalleryModal.tsx +++ b/frontend/src/components/AddToGalleryModal.tsx @@ -94,7 +94,7 @@ export default function AddToGalleryModal({ try { setMessage(""); - const response = await fetch("/graphql", { + const response = await fetch(`${import.meta.env.BASE_URL}graphql`, { method: "POST", headers: { "Content-Type": "application/json", diff --git a/frontend/src/pages/ProfilePage.tsx b/frontend/src/pages/ProfilePage.tsx index 9c14832..901c632 100644 --- a/frontend/src/pages/ProfilePage.tsx +++ b/frontend/src/pages/ProfilePage.tsx @@ -95,7 +95,7 @@ export default function ProfilePage() { `; try { - const response = await fetch("/graphql", { + const response = await fetch(`${import.meta.env.BASE_URL}graphql`, { method: "POST", headers: { "Content-Type": "application/json", @@ -156,7 +156,7 @@ export default function ProfilePage() { `; try { - const response = await fetch("/graphql", { + const response = await fetch(`${import.meta.env.BASE_URL}graphql`, { method: "POST", headers: { "Content-Type": "application/json", @@ -221,7 +221,7 @@ export default function ProfilePage() { `; try { - const response = await fetch("/graphql", { + const response = await fetch(`${import.meta.env.BASE_URL}graphql`, { method: "POST", headers: { "Content-Type": "application/json",