Oli Juhl
2024-05-23 10:58:59 +00:00
committed by GitHub
parent 37ae87fe9b
commit 05077bab32
2 changed files with 22 additions and 4 deletions
@@ -7,15 +7,15 @@ import { currencies } from "./currencies"
import { customerGroups } from "./customer-groups"
import { customers } from "./customers"
import { fulfillmentProviders } from "./fulfillment-providers"
import { fulfillments } from "./fulfillments"
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 { orders } from "./orders"
import { fulfillments } from "./fulfillments"
import { reservations } from "./reservations"
import { salesChannels } from "./sales-channels"
import { shippingOptions } from "./shipping-options"
@@ -27,6 +27,8 @@ import { taxes } from "./taxes"
import { users } from "./users"
import { workflowExecutions } from "./workflow-executions"
export const backendUrl = __BACKEND_URL__ ?? "http://localhost:9000"
export const client = {
apiKeys: apiKeys,
campaigns: campaigns,
@@ -58,7 +60,7 @@ export const client = {
}
export const sdk = new Medusa({
baseUrl: __BACKEND_URL__ ?? "http://localhost:9000",
baseUrl: backendUrl,
auth: {
type: "session",
},