fix: resolve black-screen UI from stale CDN assets and API paths
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m16s
CI/CD Pipeline / Security Scanning (push) Successful in 2m23s
CI/CD Pipeline / Lint and Format (push) Failing after 44s
CI/CD Pipeline / Terraform Validation (push) Failing after 24s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 26s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 39s
Validation / validate-genesis (push) Successful in 26s
Validation / validate-terraform (push) Failing after 24s
Validation / validate-kubernetes (push) Failing after 10s
Validation / validate-smart-contracts (push) Failing after 9s
Validation / validate-security (push) Failing after 1m28s
Validation / validate-documentation (push) Failing after 20s
Verify Deployment / Verify Deployment (push) Failing after 54s
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m16s
CI/CD Pipeline / Security Scanning (push) Successful in 2m23s
CI/CD Pipeline / Lint and Format (push) Failing after 44s
CI/CD Pipeline / Terraform Validation (push) Failing after 24s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 26s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 39s
Validation / validate-genesis (push) Successful in 26s
Validation / validate-terraform (push) Failing after 24s
Validation / validate-kubernetes (push) Failing after 10s
Validation / validate-smart-contracts (push) Failing after 9s
Validation / validate-security (push) Failing after 1m28s
Validation / validate-documentation (push) Failing after 20s
Verify Deployment / Verify Deployment (push) Failing after 54s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,11 +1,27 @@
|
||||
/** DBIS Exchange — Chain 138 DEX addresses (Pancake/Uniswap V2 compatible) */
|
||||
export const DBIS_EXCHANGE_CHAIN_ID = 138;
|
||||
export const TOKEN_AGGREGATION_URL =
|
||||
import.meta.env.VITE_TOKEN_AGGREGATION_URL || 'http://localhost:3000';
|
||||
export const DBIS_EXCHANGE_URL =
|
||||
import.meta.env.VITE_DBIS_EXCHANGE_URL || 'http://localhost:3012';
|
||||
export const SETTLEMENT_MIDDLEWARE_URL =
|
||||
import.meta.env.VITE_SETTLEMENT_MIDDLEWARE_URL || 'http://localhost:3011';
|
||||
|
||||
function prodOrLocal(envValue: string | undefined, prodPath: string, localUrl: string): string {
|
||||
const trimmed = envValue?.trim();
|
||||
if (trimmed) return trimmed;
|
||||
return import.meta.env.PROD ? prodPath : localUrl;
|
||||
}
|
||||
|
||||
export const TOKEN_AGGREGATION_URL = prodOrLocal(
|
||||
import.meta.env.VITE_TOKEN_AGGREGATION_URL,
|
||||
'/api/v1',
|
||||
'http://localhost:3000',
|
||||
);
|
||||
export const DBIS_EXCHANGE_URL = prodOrLocal(
|
||||
import.meta.env.VITE_DBIS_EXCHANGE_URL,
|
||||
'/exchange',
|
||||
'http://localhost:3012',
|
||||
);
|
||||
export const SETTLEMENT_MIDDLEWARE_URL = prodOrLocal(
|
||||
import.meta.env.VITE_SETTLEMENT_MIDDLEWARE_URL,
|
||||
'/settlement',
|
||||
'http://localhost:3011',
|
||||
);
|
||||
export const ENHANCED_SWAP_ROUTER_V2 =
|
||||
import.meta.env.VITE_ENHANCED_SWAP_ROUTER_V2 ||
|
||||
'0xa421706768aeb7fafa2d912c5e10824ef3437ad4';
|
||||
|
||||
Reference in New Issue
Block a user