Skip to content

Commit

Permalink
revert special logic for stage
Browse files Browse the repository at this point in the history
  • Loading branch information
3ch023 committed Aug 26, 2024
1 parent 72c998d commit 7ea8bf6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions libs/deps/mas/commerce.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion libs/features/mas/commerce/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const PARAM_AOS_API_KEY = 'commerce.aosKey';
export const PARAM_WCS_API_KEY = 'commerce.wcsKey';

export const WCS_PROD_URL = 'https://www.adobe.com/web_commerce_artifact';
export const WCS_PROD_CDN_STAGE_URL = 'https://www.stage.adobe.com/web_commerce_artifact';
export const WCS_STAGE_URL = 'https://www.stage.adobe.com/web_commerce_artifact_stage';

export const STATE_FAILED = 'failed';
Expand Down
5 changes: 1 addition & 4 deletions libs/features/mas/commerce/src/settings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PARAM_ENV, PARAM_LANDSCAPE, Landscape, WCS_PROD_URL, WCS_STAGE_URL, WCS_PROD_CDN_STAGE_URL } from './constants.js';
import { PARAM_ENV, PARAM_LANDSCAPE, Landscape, WCS_PROD_URL, WCS_STAGE_URL } from './constants.js';
import { Defaults } from './defaults.js';
import {
CheckoutWorkflow,
Expand Down Expand Up @@ -142,9 +142,6 @@ function getSettings(config = {}) {
env = Env.STAGE;
wcsURL = WCS_STAGE_URL;
}
if (lowHostEnv && window.location.href.startsWith('https://www.stage.adobe.com')) {
wcsURL = WCS_PROD_CDN_STAGE_URL;
}

const checkoutClientId =
getParameter('checkoutClientId', commerce) ?? Defaults.checkoutClientId;
Expand Down
2 changes: 1 addition & 1 deletion libs/features/mas/commerce/test/settings.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Env } from '../src/external.js';
import { Landscape, WCS_PROD_URL, WCS_STAGE_URL, WCS_PROD_CDN_STAGE_URL } from '../src/constants.js';
import { Landscape, WCS_PROD_URL, WCS_STAGE_URL } from '../src/constants.js';
import { Defaults } from '../src/defaults.js';
import { getSettings } from '../src/settings.js';

Expand Down

0 comments on commit 7ea8bf6

Please sign in to comment.