mirror of
https://github.com/placeholder-soft/web.git
synced 2026-01-12 17:02:57 +08:00
* Added Amplitude Experiments Initialization to initCCA * create useVariant hook to pull experimental variants * refactored useVariant to create simpler interface * linted * automated defaultDeploymentKey logic * added defaultDeploymentKey for prod env * Created ExperimentsContext for web app * added more specificity to amplitude domains for CSP * additional properties on eventData * added amplitude deployment keys to constants * deleted unused useVariant hook * refactored experiment initialization in initCCA * refactored Experiments context * refactored usage of Experiments provider * refactored ampDeploymentKey logic * removed experiment initialization from initCCA * restored index page to prior state * refactored initCCA to pull constants into dedicated file * created Experiments context in base-docs * implemented experiments context in base-docs Root * moved Experiments context to libs * updated Experiments context integration in base-web * fixed import statement * deleted unused context in favor of shared version in libs * implemented shared experiments context * moved Experiments context to be innermost context provider in base-web * removed unused imports from initCCA * refactored Amplitude Experiments package into libs * fixed yarn issue * added type declaration for * refactored window type declaration
13 lines
686 B
TypeScript
13 lines
686 B
TypeScript
export const nodeEnv = process.env.NODE_ENV;
|
|
export const docsUrl = process.env.DOCS_URL ?? 'https://docs.base.org';
|
|
export const bridgeUrl = process.env.BRIDGE_URL ?? 'https://bridge.base.org';
|
|
export const greenhouseApiUrl =
|
|
process.env.GREENHOUSE_HTTPS ?? 'https://boards-api.greenhouse.io/v1';
|
|
export const mainnetLaunchBlogPostURL =
|
|
process.env.MAINNET_LAUNCH_BLOG_POST_URL ?? 'https://base.mirror.xyz/';
|
|
export const mainnetLaunchFlag = process.env.MAINNET_LAUNCH_FLAG ?? 'false';
|
|
export const isDevelopment = nodeEnv === 'development';
|
|
export const ampDeploymentKey = isDevelopment
|
|
? 'client-Wvf63OdaukDZyCBtwgbOvHgGTuASBZFG'
|
|
: 'client-agFoQg5AOvZ2ZiOChny9RrGk21jG3VrH';
|