Skip to content

Commit

Permalink
remote disable true in dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
biplobsd committed Jan 18, 2025
1 parent f44cea0 commit cb5b1bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/xpaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit cb5b1bf

Please sign in to comment.