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",