From 9c8072a09ded677e60d70e5cbc9367d437a024ce Mon Sep 17 00:00:00 2001 From: typescreep Date: Mon, 25 Aug 2025 21:56:10 +0300 Subject: [PATCH] fix envs --- src/constants/customizationApiGroupAndVersion.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/constants/customizationApiGroupAndVersion.ts b/src/constants/customizationApiGroupAndVersion.ts index 2090dd5..d645069 100644 --- a/src/constants/customizationApiGroupAndVersion.ts +++ b/src/constants/customizationApiGroupAndVersion.ts @@ -34,7 +34,8 @@ export const LOGOUT_URL = window._env_.LOGOUT_URL || import.meta.env.VITE_LOGOUT export const LOGIN_USERNAME_FIELD = window._env_.LOGIN_USERNAME_FIELD || import.meta.env.VITE_LOGIN_USERNAME_FIELD export const BASE_REMOVE_BACKLINK = - window._env_.REMOVE_BACKLINK === 'true' || import.meta.env.VITE_REMOVE_BACKLINK?.toString().toLowerCase() === 'true' + window._env_.REMOVE_BACKLINK === 'true' || + (import.meta.env.DEV && import.meta.env.VITE_REMOVE_BACKLINK?.toString().toLowerCase() === 'true') export const BASE_REMOVE_BACKLINK_TEXT = window._env_.REMOVE_BACKLINK_TEXT === 'true' || - import.meta.env.VITE_REMOVE_BACKLINK_TEXT?.toString().toLowerCase() === 'true' + (import.meta.env.DEV && import.meta.env.VITE_REMOVE_BACKLINK_TEXT?.toString().toLowerCase() === 'true')