Skip to content

Commit 3c63f01

Browse files
API_URL in nuxt config
1 parent f90e88a commit 3c63f01

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

nuxt.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
export default defineNuxtConfig({
22
runtimeConfig: {
33
public: {
4-
API_URL:
5-
process.env.NODE_ENV === "production"
6-
? "api.geode-solutions.com"
7-
: "localhost",
4+
API_URL: "api.geode-solutions.com",
85
SITE_BRANCH:
96
process.env.NODE_ENV === "production" ? process.env.SITE_BRANCH : "",
107
PROJECT: process.env.NODE_ENV === "production" ? process.env.PROJECT : "",

stores/infra.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const use_infra_store = defineStore("infra", {
1313
},
1414
domain_name() {
1515
if (this.is_cloud) {
16-
return "api.geode-solutions.com"
16+
return useRuntimeConfig().public.API_URL
1717
} else {
1818
return "localhost"
1919
}

0 commit comments

Comments
 (0)