Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link roots #483

Merged
merged 3 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci-ipfs-test-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
DOCS_ORIGIN: ${{ vars.DOCS_ORIGIN }}
HELP_ORIGIN: ${{ vars.HELP_ORIGIN }}
RESEARCH_ORIGIN: ${{ vars.RESEARCH_ORIGIN }}
BLOG_ORIGIN: ${{ vars.BLOG_ORIGIN }}
DEFAULT_CHAIN: ${{ vars.DEFAULT_CHAIN }}
SUPPORTED_CHAINS: ${{ vars.SUPPORTED_CHAINS }}
WIDGET_API_BASE_PATH_FOR_IPFS: ${{ vars.WIDGET_API_BASE_PATH_FOR_IPFS }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-ipfs-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
DOCS_ORIGIN: ${{ vars.DOCS_ORIGIN }}
HELP_ORIGIN: ${{ vars.HELP_ORIGIN }}
RESEARCH_ORIGIN: ${{ vars.RESEARCH_ORIGIN }}
BLOG_ORIGIN: ${{ vars.BLOG_ORIGIN }}
DEFAULT_CHAIN: ${{ vars.DEFAULT_CHAIN }}
SUPPORTED_CHAINS: ${{ vars.SUPPORTED_CHAINS }}
WIDGET_API_BASE_PATH_FOR_IPFS: ${{ vars.WIDGET_API_BASE_PATH_FOR_IPFS }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
DOCS_ORIGIN: ${{ vars.DOCS_ORIGIN }}
HELP_ORIGIN: ${{ vars.HELP_ORIGIN }}
RESEARCH_ORIGIN: ${{ vars.RESEARCH_ORIGIN }}
BLOG_ORIGIN: ${{ vars.BLOG_ORIGIN }}
DEFAULT_CHAIN: ${{ vars.DEFAULT_CHAIN }}
SUPPORTED_CHAINS: ${{ vars.SUPPORTED_CHAINS }}
WIDGET_API_BASE_PATH_FOR_IPFS: ${{ vars.WIDGET_API_BASE_PATH_FOR_IPFS }}
Expand Down
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.BLOG_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 scripts/log-environment-variables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const openKeys = [
'DOCS_ORIGIN',
'HELP_ORIGIN',
'RESEARCH_ORIGIN',
'BLOG_ORIGIN',

'SUPPORTED_CHAINS',
'DEFAULT_CHAIN',
Expand Down Expand Up @@ -32,8 +33,7 @@ export const secretKeys = [
'EL_RPC_URLS_17000',
'EL_RPC_URLS_11155111',
'EL_RPC_URLS_11155420',
]

];

export const logOpenEnvironmentVariables = () => {
console.log('---------------------------------------------');
Expand Down
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
Loading