Skip to content

Commit

Permalink
fix: link roots
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Sep 26, 2024
1 parent 783d503 commit ef2afdd
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
23 changes: 15 additions & 8 deletions env-dynamics.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ export const helpOrigin = process.env.HELP_ORIGIN || 'https://help.lido.fi';
// Fix in the build time (build time don't have env vars)

/** @type string */
export const researchOrigin = process.env.RESEARCH_ORIGIN || 'https://research.lido.fi';
export const researchOrigin =
process.env.RESEARCH_ORIGIN || 'https://research.lido.fi';
// Fix in the build time (build time don't have env vars)

/** @type string */
export const blogOrigin = process.env.RESEARCH_ORIGIN || 'https://blog.lido.fi';
// Fix in the build time (build time don't have env vars)

// Keep fallback as in 'config/get-secret-config.ts'
Expand All @@ -47,13 +52,17 @@ export const supportedChains = process.env?.SUPPORTED_CHAINS?.split(',').map(
) ?? [17000];

/** @type string[] */
export const prefillUnsafeElRpcUrls1 = process.env.PREFILL_UNSAFE_EL_RPC_URLS_1?.split(',') ?? [];
export const prefillUnsafeElRpcUrls1 =
process.env.PREFILL_UNSAFE_EL_RPC_URLS_1?.split(',') ?? [];
/** @type string[] */
export const prefillUnsafeElRpcUrls17000 = process.env.PREFILL_UNSAFE_EL_RPC_URLS_17000?.split(',') ?? [];
export const prefillUnsafeElRpcUrls17000 =
process.env.PREFILL_UNSAFE_EL_RPC_URLS_17000?.split(',') ?? [];
/** @type string[] */
export const prefillUnsafeElRpcUrls11155111 = process.env.PREFILL_UNSAFE_EL_RPC_URLS_11155111?.split(',') ?? [];
export const prefillUnsafeElRpcUrls11155111 =
process.env.PREFILL_UNSAFE_EL_RPC_URLS_11155111?.split(',') ?? [];
/** @type string[] */
export const prefillUnsafeElRpcUrls11155420 = process.env.PREFILL_UNSAFE_EL_RPC_URLS_11155420?.split(',') ?? [];
export const prefillUnsafeElRpcUrls11155420 =
process.env.PREFILL_UNSAFE_EL_RPC_URLS_11155420?.split(',') ?? [];

/** @type boolean */
export const enableQaHelpers = toBoolean(process.env.ENABLE_QA_HELPERS);
Expand All @@ -75,6 +84,4 @@ export const widgetApiBasePathForIpfs =
process.env.WIDGET_API_BASE_PATH_FOR_IPFS;

/** @type string */
export const rewardsBackendBasePath =
process.env.REWARDS_BACKEND_BASE_PATH;

export const rewardsBackendBasePath = process.env.REWARDS_BACKEND_BASE_PATH;
4 changes: 2 additions & 2 deletions shared/banners/dvv-banner/dvv-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import { ReactComponent as IconPartnersLogoDark } from 'assets/dvv-banner/dvv-ba

import { trackEvent } from '@lidofinance/analytics-matomo';
import { MATOMO_CLICK_EVENTS } from 'consts/matomo-click-events';
import { config } from 'config';

const LINK_DVV_VAULT =
'https://blog.lido.fi/decentralized-validator-vault-mellow-obol-ssv/';
const LINK_DVV_VAULT = `${config.blogOrigin}/decentralized-validator-vault-mellow-obol-ssv/`;
const LINK_PROCEED_BUTTON =
'https://app.mellow.finance/vaults/ethereum-dvsteth';

Expand Down
4 changes: 3 additions & 1 deletion shared/banners/vaults-banner-info/const.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const LINK_EXPLORE_STRATEGIES = 'https://lido.fi/#defi-strategies';
import { config } from 'config';

export const LINK_EXPLORE_STRATEGIES = `${config.rootOrigin}/#defi-strategies`;
2 changes: 2 additions & 0 deletions utilsApi/metrics/startup-metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ const collectEnvInfoMetrics = (registry: Registry): void => {
export const collectStartupMetrics = async (
registry: Registry,
): Promise<void> => {
// conflicts with HMR
if (config.developmentMode) return;
collectEnvInfoMetrics(registry);

collectBuildInfoMetrics({
Expand Down

0 comments on commit ef2afdd

Please sign in to comment.