use correct URL (#13360)

This commit is contained in:
SteelRazor47 authored and GitHub committed 2025-09-10 07:40:45 -04:00
1 parent 49a4caa62d
commit afe21741c4
3 files changed
+7 -1

No files matched your search

+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" import Medusa from "@medusajs/js-sdk"
export const sdk = new Medusa({ export const sdk = new Medusa({
baseUrl: "/", baseUrl: __BACKEND_URL__ || "/",
auth: { auth: {
type: "session", type: "session",
}, },
+1
View File
@@ -0,0 +1 @@
declare const __BACKEND_URL__: string | undefined