chore(store): use import.meta.env.DEV instead of process.env.NODE_ENV (P3-53)

Vite-native idiom; added vite/client triple-slash reference to env.d.ts
so TS knows about ImportMeta.env.
This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 23:04:36 -04:00
1 parent 4fd1326089
commit 84d11582a3
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
/// <reference types="vite/client" />
import type { DesktopApi } from "@shared/contracts";
declare global {
+1 -1
View File
@@ -39,7 +39,7 @@ export const useAppStore = create<AppState>()(
})),
{
name: "AgentCompany",
enabled: process.env.NODE_ENV === "development",
enabled: import.meta.env.DEV,
}
)
);