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:
1 parent
4fd1326089
commit
84d11582a3
2 files changed
+2
-1
No files matched your search
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
/// <reference types="vite/client" />
|
||||||
import type { DesktopApi } from "@shared/contracts";
|
import type { DesktopApi } from "@shared/contracts";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export const useAppStore = create<AppState>()(
|
|||||||
})),
|
})),
|
||||||
{
|
{
|
||||||
name: "AgentCompany",
|
name: "AgentCompany",
|
||||||
enabled: process.env.NODE_ENV === "development",
|
enabled: import.meta.env.DEV,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
Reference in new issue
Block a user