From cb5b1bf7f0e952dc610c3c0eb7d7e8021e9f5cb8 Mon Sep 17 00:00:00 2001 From: Biplob Sutradhar Date: Sat, 18 Jan 2025 21:45:16 +0600 Subject: [PATCH] remote disable true in dev env --- src/utils/default.ts | 2 +- src/utils/xpaths.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/default.ts b/src/utils/default.ts index 3c0c554..44594e9 100644 --- a/src/utils/default.ts +++ b/src/utils/default.ts @@ -4,7 +4,7 @@ import xpathJson from "../../data/xpaths/v1.8.5.json"; export const SETTINGS_DEFAULT: Settings = { themeMode: "dark", channelIDs: [], - XPaths: { ...xpathJson, REMOTE_DISABLE: false }, + XPaths: { ...xpathJson, REMOTE_DISABLE: import.meta.env.DEV }, workingMode: "xpath", firstOAuthKey: "", secondOAuthKey: "", diff --git a/src/utils/xpaths.ts b/src/utils/xpaths.ts index 7983be7..7b934d2 100644 --- a/src/utils/xpaths.ts +++ b/src/utils/xpaths.ts @@ -31,7 +31,7 @@ export const XPathModelSchema = z.object({ UNSUB1: z.string().default(xpathJson.UNSUB1), UNSUB2: z.string().default(xpathJson.UNSUB2), UPDATE_DATE: z.string().optional(), - REMOTE_DISABLE: z.boolean().default(false).optional(), + REMOTE_DISABLE: z.boolean().default(import.meta.env.DEV).optional(), SEARCH_INPUT_QUERY: z.string().default(xpathJson.SEARCH_INPUT_QUERY), NAVIGATION_PROGRESS: z.string().default(xpathJson.NAVIGATION_PROGRESS), ALL_SUBSCRIPTIONS_BTN: z.string().default(xpathJson.ALL_SUBSCRIPTIONS_BTN),