We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3cb3a07 + 90d322d commit b6054a7Copy full SHA for b6054a7
stores/infra.js
@@ -11,20 +11,20 @@ export const use_infra_store = defineStore("infra", {
11
is_cloud() {
12
return !isElectron() && !process.env.NODE_ENV === "development"
13
},
14
- domain_name(state) {
15
- if (state.is_cloud) {
+ domain_name() {
+ if (this.is_cloud) {
16
return useRuntimeConfig().public.API_URL
17
} else {
18
return "localhost"
19
}
20
21
- lambda_url(state) {
+ lambda_url() {
22
const geode_store = use_geode_store()
23
const public_runtime_config = useRuntimeConfig().public
24
const url =
25
geode_store.protocol +
26
"://" +
27
- state.domain_name +
+ this.domain_name +
28
":" +
29
geode_store.port +
30
public_runtime_config.SITE_BRANCH +
0 commit comments