Skip to content

Commit

Permalink
fix: config.json fetch to be dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
scolastico committed Mar 29, 2024
1 parent d6514d3 commit e9ef56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mixins/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default defineNuxtComponent({
},
async getApi(): Promise<AxiosInstance> {
if (this.api) return this.api;
this.configData = (await Axios.get('/config.json')).data;
this.configData = (await Axios.get(this.$config.app.baseURL + 'config.json')).data;
this.api = Axios.create({
baseURL: this.configData.baseURL,
})
Expand Down

0 comments on commit e9ef56e

Please sign in to comment.