Why Is Config Broken On the Server?

This commit is contained in:
Annika Merris 2024-03-02 18:43:15 -05:00
parent a4c98b1818
commit 42e9b2f628

View file

@ -50,6 +50,13 @@ export const usePowerItems = defineStore('powerItems', () => {
//#region loaders
async function fetchBlessingItems() {
getConfig().then((conf: Config | null) => {
if (conf !== null) {
apiBaseURL = conf.apiBaseURL
return conf
}
throw new Error("Could not fetch config")
})
axios
.get(apiBaseURL + '/powerItems/byType/' + BLESSING + '/asMap', noCacheConfig)
.then((resp) => {