use correct URL (#13360)

This commit is contained in:
SteelRazor47
2025-09-10 07:40:45 -04:00
committed by GitHub
parent 49a4caa62d
commit afe21741c4
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/draft-order": patch
---
fix(draft-order): use correct backend URL in sdk creation
@@ -1,7 +1,7 @@
import Medusa from "@medusajs/js-sdk"
export const sdk = new Medusa({
baseUrl: "/",
baseUrl: __BACKEND_URL__ || "/",
auth: {
type: "session",
},
+1
View File
@@ -0,0 +1 @@
declare const __BACKEND_URL__: string | undefined