File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ export const replaceNetworkWithBaseURL = <T>(
55 requestOverrides ?: AxiosRequestConfig ,
66) : Promise < AxiosResponse < T > > => {
77 if ( config . url ?. startsWith ( '/mainnet/' ) ) {
8- config . url = config . url . replace ( '/mainnet/' , import . meta. env . REACT_APP_API ! )
8+ config . url = config . url . replace ( '/mainnet/' , import . meta. env . REACT_APP_API )
99 } else if ( config . url ?. startsWith ( '/testnet/' ) ) {
10- config . url = config . url . replace ( '/testnet/' , import . meta. env . REACT_APP_TESTNET_API ! )
10+ config . url = config . url . replace ( '/testnet/' , import . meta. env . REACT_APP_TESTNET_API )
1111 } else if ( config . url ?. startsWith ( '/localnet/' ) ) {
12- config . url = config . url . replace ( '/localnet/' , import . meta. env . REACT_APP_LOCALNET_API ! )
12+ config . url = config . url . replace ( '/localnet/' , import . meta. env . REACT_APP_LOCALNET_API )
1313 } else {
1414 throw new Error ( `Expected URL to be prefixed with network: ${ config . url } ` )
1515 }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ declare global {
99 REACT_APP_ENABLE_OASIS_MATOMO_ANALYTICS : string
1010 REACT_APP_API : string
1111 REACT_APP_TESTNET_API : string
12- REACT_APP_LOCALNET_API ? : string
12+ REACT_APP_LOCALNET_API : string
1313 REACT_APP_SHOW_BUILD_BANNERS : 'true' | 'false'
1414 REACT_APP_META_TITLE : string
1515 REACT_APP_META_IMAGE : string
You can’t perform that action at this time.
0 commit comments