fix: Default to a relative path for the admin backend URL (#9947)

This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-11-06 15:08:38 +01:00
1 parent 4f4b0ddda2
commit b3cbc160eb
7 files changed
+19 -11

No files matched your search

@@ -1,6 +1,6 @@
import Medusa from "@medusajs/js-sdk"
export const backendUrl = __BACKEND_URL__ ?? "http://localhost:9000"
export const backendUrl = __BACKEND_URL__ ?? "/"
export const sdk = new Medusa({
baseUrl: backendUrl,
@@ -1,6 +1,6 @@
import { QueryClient } from "@tanstack/react-query"
export const MEDUSA_BACKEND_URL = __BACKEND_URL__ ?? "http://localhost:9000"
export const MEDUSA_BACKEND_URL = __BACKEND_URL__ ?? "/"
export const queryClient = new QueryClient({
defaultOptions: {