Skip to content

Commit

Permalink
fix: remove api.bundleb2b.net references
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-micah committed Apr 25, 2024
1 parent b59d5a4 commit 7c5e748
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Once you have uploaded the contents of the `dist` folder to your hosting provide
setting: {
store_hash: '<YOUR_STORE_HASH>',
channel_id: '<YOUR_CHANNEL_ID>',
b2b_url: 'https://api.bundleb2b.net',
b2b_url: 'https://api-b2b.bigcommerce.com',
captcha_setkey: '6LdGN_sgAAAAAGYFg1lmVoakQ8QXxbhWqZ1GpYaJ',
},
'dom.checkoutRegisterParentElement': '#checkout-app',
Expand Down
8 changes: 4 additions & 4 deletions apps/storefront/.env-example
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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="<YOUR_ASSETS_ABSOLUTE_PATH>"
2 changes: 1 addition & 1 deletion apps/storefront/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const envs: Record<string, { schema: string }> = {
schema: 'http://localhost:9000/graphql',
},
production: {
schema: 'https://api.bundleb2b.net/graphql',
schema: 'https://api-b2b.bigcommerce.com/graphql',
},
}

Expand Down
4 changes: 2 additions & 2 deletions apps/storefront/src/buyerPortal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions packages/global-b3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 7c5e748

Please sign in to comment.