File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
packages/manager/apps/pci-project/src/utils Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 11import { init } from '@module-federation/runtime' ;
22
3- const isLabeuEnvironment = / \. l a b e u \. / . test ( window . location . hostname ) ;
4-
5- const isStagingEnvironment = / \. d t c i \. / . test ( window . location . hostname ) ;
6-
7- const getWillPaymentUrl = ( ) => {
8- if ( isLabeuEnvironment ) {
9- return 'https://www.build-ovh.com/order/payment/assets/remoteEntry.js' ;
10- }
11- if ( isStagingEnvironment ) {
12- return 'https://ovhcloudcomdev.static.ovh.net/order/payment/assets/remoteEntry.js' ;
13- }
14- return 'https://www.ovhcloud.com/order/payment/assets/remoteEntry.js' ;
15- } ;
3+ const getWillPaymentUrl = ( ) =>
4+ import . meta. env . VITE_WP_ENTRY_POINT ||
5+ 'https://www.ovhcloud.com/order/payment/assets/remoteEntry.js' ;
166
177/**
188 * Initialize Module Federation runtime
You can’t perform that action at this time.
0 commit comments