fix: undefined BACKEND_URL in client (#7367)

This commit is contained in:
Oli Juhl
2024-05-19 13:51:36 +02:00
committed by GitHub
parent bf4724b8e6
commit c0813a3547
@@ -6,26 +6,26 @@ import { collections } from "./collections"
import { currencies } from "./currencies" import { currencies } from "./currencies"
import { customerGroups } from "./customer-groups" import { customerGroups } from "./customer-groups"
import { customers } from "./customers" import { customers } from "./customers"
import { fulfillmentProviders } from "./fulfillment-providers"
import { inventoryItems } from "./inventory" import { inventoryItems } from "./inventory"
import { invites } from "./invites" import { invites } from "./invites"
import { orders } from "./orders"
import { payments } from "./payments" import { payments } from "./payments"
import { priceLists } from "./price-lists" import { priceLists } from "./price-lists"
import { productTypes } from "./product-types" import { productTypes } from "./product-types"
import { products } from "./products" import { products } from "./products"
import { promotions } from "./promotions" import { promotions } from "./promotions"
import { regions } from "./regions" import { regions } from "./regions"
import { fulfillmentProviders } from "./fulfillment-providers"
import { reservations } from "./reservations" import { reservations } from "./reservations"
import { salesChannels } from "./sales-channels" import { salesChannels } from "./sales-channels"
import { shippingOptions } from "./shipping-options" import { shippingOptions } from "./shipping-options"
import { shippingProfiles } from "./shipping-profiles"
import { stockLocations } from "./stock-locations" import { stockLocations } from "./stock-locations"
import { stores } from "./stores" import { stores } from "./stores"
import { tags } from "./tags" import { tags } from "./tags"
import { taxes } from "./taxes" import { taxes } from "./taxes"
import { users } from "./users" import { users } from "./users"
import { orders } from "./orders"
import { workflowExecutions } from "./workflow-executions" import { workflowExecutions } from "./workflow-executions"
import { shippingProfiles } from "./shipping-profiles"
export const client = { export const client = {
apiKeys: apiKeys, apiKeys: apiKeys,
@@ -58,7 +58,7 @@ export const client = {
} }
export const sdk = new Medusa({ export const sdk = new Medusa({
baseUrl: __BACKEND_URL__ || "http://localhost:9000", baseUrl: __BACKEND_URL__ ?? "http://localhost:9000",
auth: { auth: {
type: "session", type: "session",
}, },