Skip to content

Commit

Permalink
Merge pull request #21 from Geode-solutions/feat_dynamic_project_name
Browse files Browse the repository at this point in the history
Feat dynamic project name
  • Loading branch information
JulienChampagnol authored Sep 21, 2023
2 parents 57d0c62 + 5c45e1c commit 111cbf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stores/cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const use_cloud_store = defineStore('cloud', {
if (process.env.NODE_ENV == 'production') {
geode_url = geode_url + `/${state.ID}/geode`
}
console.log("geode_url",geode_url)
return geode_url
},
viewer_url: (state) => {
Expand Down Expand Up @@ -51,7 +50,7 @@ export const use_cloud_store = defineStore('cloud', {
const errors_store = use_errors_store()
const config = useRuntimeConfig()
const public_runtime_config = config.public
const { data, error } = await useFetch(`${public_runtime_config.GEODE_PROTOCOL}://${public_runtime_config.API_URL}:${public_runtime_config.GEODE_PORT}${public_runtime_config.SITE_BRANCH}/tools/createbackend`, { method: 'POST' })
const { data, error } = await useFetch(`${public_runtime_config.GEODE_PROTOCOL}://${public_runtime_config.API_URL}:${public_runtime_config.GEODE_PORT}${public_runtime_config.SITE_BRANCH}${public_runtime_config.PROJECT}/createbackend`, { method: 'POST' })
if (data.value !== null) {
this.ID = data.value.ID
localStorage.setItem('ID', data.value.ID)
Expand Down

0 comments on commit 111cbf8

Please sign in to comment.