use correct URL (#13360)

This commit is contained in:
SteelRazor47
2025-09-10 13:40:45 +02:00
committed by GitHub
parent 49a4caa62d
commit afe21741c4
3 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/draft-order": patch
---
fix(draft-order): use correct backend URL in sdk creation

View File

@@ -1,7 +1,7 @@
import Medusa from "@medusajs/js-sdk"
export const sdk = new Medusa({
baseUrl: "/",
baseUrl: __BACKEND_URL__ || "/",
auth: {
type: "session",
},

View File

@@ -0,0 +1 @@
declare const __BACKEND_URL__: string | undefined