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')