Skip to content

Commit 5c45e1c

Browse files
BREAKING CHANGE:
add dynamic project name for create_backend
1 parent 293d8ba commit 5c45e1c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stores/cloud.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const use_cloud_store = defineStore('cloud', {
1515
if (process.env.NODE_ENV == 'production') {
1616
geode_url = geode_url + `/${state.ID}/geode`
1717
}
18-
console.log("geode_url",geode_url)
1918
return geode_url
2019
},
2120
viewer_url: (state) => {
@@ -51,7 +50,7 @@ export const use_cloud_store = defineStore('cloud', {
5150
const errors_store = use_errors_store()
5251
const config = useRuntimeConfig()
5352
const public_runtime_config = config.public
54-
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' })
53+
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' })
5554
if (data.value !== null) {
5655
this.ID = data.value.ID
5756
localStorage.setItem('ID', data.value.ID)

0 commit comments

Comments
 (0)