@geode/opengeodeweb-front 9.0.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/stores/infra.js +4 -4
package/package.json
CHANGED
package/stores/infra.js
CHANGED
|
@@ -11,20 +11,20 @@ export const use_infra_store = defineStore("infra", {
|
|
|
11
11
|
is_cloud() {
|
|
12
12
|
return !isElectron() && !process.env.NODE_ENV === "development"
|
|
13
13
|
},
|
|
14
|
-
domain_name(
|
|
15
|
-
if (
|
|
14
|
+
domain_name() {
|
|
15
|
+
if (this.is_cloud) {
|
|
16
16
|
return useRuntimeConfig().public.API_URL
|
|
17
17
|
} else {
|
|
18
18
|
return "localhost"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
lambda_url(
|
|
21
|
+
lambda_url() {
|
|
22
22
|
const geode_store = use_geode_store()
|
|
23
23
|
const public_runtime_config = useRuntimeConfig().public
|
|
24
24
|
const url =
|
|
25
25
|
geode_store.protocol +
|
|
26
26
|
"://" +
|
|
27
|
-
|
|
27
|
+
this.domain_name +
|
|
28
28
|
":" +
|
|
29
29
|
geode_store.port +
|
|
30
30
|
public_runtime_config.SITE_BRANCH +
|