Skip to content

Commit 87e3ef7

Browse files
fix(is_cloud): fix return
1 parent 888e6ae commit 87e3ef7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

stores/infra.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ export const use_infra_store = defineStore("infra", {
99
}),
1010
getters: {
1111
is_cloud() {
12-
console.log("is_cloud")
13-
console.log("TEST isElectron()", isElectron())
14-
console.log("TEST process.env.NODE_ENV", process.env.NODE_ENV)
15-
return !isElectron() && !process.env.NODE_ENV === "development"
12+
return (
13+
!isElectron() && useRuntimeConfig().public.NODE_ENV === "production"
14+
)
1615
},
1716
domain_name() {
1817
if (this.is_cloud) {

0 commit comments

Comments
 (0)