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

View File

@@ -6,26 +6,26 @@ import { collections } from "./collections"
import { currencies } from "./currencies"
import { customerGroups } from "./customer-groups"
import { customers } from "./customers"
import { fulfillmentProviders } from "./fulfillment-providers"
import { inventoryItems } from "./inventory"
import { invites } from "./invites"
import { orders } from "./orders"
import { payments } from "./payments"
import { priceLists } from "./price-lists"
import { productTypes } from "./product-types"
import { products } from "./products"
import { promotions } from "./promotions"
import { regions } from "./regions"
import { fulfillmentProviders } from "./fulfillment-providers"
import { reservations } from "./reservations"
import { salesChannels } from "./sales-channels"
import { shippingOptions } from "./shipping-options"
import { shippingProfiles } from "./shipping-profiles"
import { stockLocations } from "./stock-locations"
import { stores } from "./stores"
import { tags } from "./tags"
import { taxes } from "./taxes"
import { users } from "./users"
import { orders } from "./orders"
import { workflowExecutions } from "./workflow-executions"
import { shippingProfiles } from "./shipping-profiles"
export const client = {
apiKeys: apiKeys,
@@ -58,7 +58,7 @@ export const client = {
}
export const sdk = new Medusa({
baseUrl: __BACKEND_URL__ || "http://localhost:9000",
baseUrl: __BACKEND_URL__ ?? "http://localhost:9000",
auth: {
type: "session",
},