From 7c5e748fa234364c0ca92be333589c4b7164e881 Mon Sep 17 00:00:00 2001 From: Micah Thomas Date: Thu, 25 Apr 2024 14:09:29 -0600 Subject: [PATCH] fix: remove api.bundleb2b.net references --- README.md | 2 +- apps/storefront/.env-example | 8 ++++---- apps/storefront/codegen.ts | 2 +- apps/storefront/src/buyerPortal.ts | 4 ++-- packages/global-b3/index.ts | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a9ead195..ed3bf93f 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ Once you have uploaded the contents of the `dist` folder to your hosting provide setting: { store_hash: '', channel_id: '', - b2b_url: 'https://api.bundleb2b.net', + b2b_url: 'https://api-b2b.bigcommerce.com', captcha_setkey: '6LdGN_sgAAAAAGYFg1lmVoakQ8QXxbhWqZ1GpYaJ', }, 'dom.checkoutRegisterParentElement': '#checkout-app', diff --git a/apps/storefront/.env-example b/apps/storefront/.env-example index 1368e2c9..9e11d7da 100644 --- a/apps/storefront/.env-example +++ b/apps/storefront/.env-example @@ -1,11 +1,11 @@ # URL of the B2B API, if doing local development, this should be the URL of the local B2B API with its own port -VITE_B2B_URL=https://api.bundleb2b.net +VITE_B2B_URL=https://api-b2b.bigcommerce.com # URL of the B2B Socket - this should be the same as the B2B API URL -VITE_B2B_SOCKET_URL=https://api.bundleb2b.net +VITE_B2B_SOCKET_URL=https://api-b2b.bigcommerce.com # URL of the B2B Translation Service - if doing local development, try with localhost:5000 or check the service URL -VITE_TRANSLATION_SERVICE_URL=https://api.bundleb2b.net +VITE_TRANSLATION_SERVICE_URL=https://api-b2b.bigcommerce.com # CHANNEL ID of the storefront, if your store is multi-storefront, you can use this to specify the storefront - otherwise leave as 1 VITE_CHANNEL_ID=1 @@ -23,7 +23,7 @@ VITE_B2B_CLIENT_ID=qxvapwlk4fbb9dyogdcxk9o50d9jqjo VITE_LOCAL_DEBUG=FALSE # URL where the GraphQL is hosted, usually the same one as B2B_URL_API. If the GraphQL API is hosted locally, set this to the local URL -VITE_LOCAL_GRAPHQL_ORIGIN=https://api.bundleb2b.net +VITE_LOCAL_GRAPHQL_ORIGIN=https://api-b2b.bigcommerce.com # For building the app, set this to the absolute path where the compiled assets will be hosted VITE_ASSETS_ABSOLUTE_PATH="" diff --git a/apps/storefront/codegen.ts b/apps/storefront/codegen.ts index cf715798..e2726da7 100644 --- a/apps/storefront/codegen.ts +++ b/apps/storefront/codegen.ts @@ -7,7 +7,7 @@ const envs: Record = { schema: 'http://localhost:9000/graphql', }, production: { - schema: 'https://api.bundleb2b.net/graphql', + schema: 'https://api-b2b.bigcommerce.com/graphql', }, } diff --git a/apps/storefront/src/buyerPortal.ts b/apps/storefront/src/buyerPortal.ts index 76123186..a834edf8 100644 --- a/apps/storefront/src/buyerPortal.ts +++ b/apps/storefront/src/buyerPortal.ts @@ -15,8 +15,8 @@ interface GraphqlOriginProps { const graphqlOrigin: GraphqlOriginProps = { development: VITE_LOCAL_GRAPHQL_ORIGIN, - staging: 'https://staging-v2.bundleb2b.net', - production: 'https://api.bundleb2b.net', + staging: 'https://api-b2b.staging.zone', + production: 'https://api-b2b.bigcommerce.com', } function init() { diff --git a/packages/global-b3/index.ts b/packages/global-b3/index.ts index 7591a888..7721215a 100644 --- a/packages/global-b3/index.ts +++ b/packages/global-b3/index.ts @@ -77,8 +77,8 @@ const globalB3 = { before_login_goto_page: '/account.php?action=order_status', checkout_super_clear_session: 'true', setting: { - b2b_url: 'https://staging-v2.bundleb2b.net', - b2b_socket_url: 'https://staging-v2.bundleb2b.net', + b2b_url: 'https://api-b2b.staging.zone', + b2b_socket_url: 'https://api-b2b.staging.zone', store_hash: `1l3zp8c753`, channel_id: 1, b2b_client_id: 'r2x8j3tn54wduq47b4efct5tqxio5z2',