refactor: Change the name of the environment variable

This commit is contained in:
Leonardo Humbert 2023-07-28 10:18:48 -03:00
parent eeae168df1
commit a9413c586a
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export const REPO_URL = 'https://github.com/umami-software/umami';
export const UPDATES_URL = 'https://api.umami.is/v1/updates'; export const UPDATES_URL = 'https://api.umami.is/v1/updates';
export const TELEMETRY_PIXEL = 'https://i.umami.is/a.png'; export const TELEMETRY_PIXEL = 'https://i.umami.is/a.png';
export const DEFAULT_LOCALE = process.env.defaultLang ?? 'en-US'; export const DEFAULT_LOCALE = process.env.defaultLocale ?? 'en-US';
export const DEFAULT_THEME = 'light'; export const DEFAULT_THEME = 'light';
export const DEFAULT_ANIMATION_DURATION = 300; export const DEFAULT_ANIMATION_DURATION = 300;
export const DEFAULT_DATE_RANGE = '24hour'; export const DEFAULT_DATE_RANGE = '24hour';

View File

@ -74,7 +74,7 @@ if (process.env.CLOUD_MODE && process.env.CLOUD_URL && process.env.DISABLE_LOGIN
const config = { const config = {
env: { env: {
currentVersion: pkg.version, currentVersion: pkg.version,
defaultLang: process.env.DEFAULT_LANG, defaultLocale: process.env.DEFAULT_LOCALE,
isProduction: process.env.NODE_ENV === 'production', isProduction: process.env.NODE_ENV === 'production',
}, },
basePath: process.env.BASE_PATH, basePath: process.env.BASE_PATH,