You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
As mentioned by axios-module issue nuxt-community/axios-module#308 when making a call using a relative path like this.$axios.get('/staticFile'), the baseURL (also available at this.$axios.defaults.baseURL) is hard-coded as localhost:3000, which can be addressed by configuring baseURL: '/' in nuxt.config.js (or .ts, I think you could replace the .js when TypeScript is chosen - and when you do so, you'll realize tsconfig.json also lacks vuetify type, just like @nuxtjs/axios for axios).
As mentioned by axios-module issue nuxt-community/axios-module#308 when making a call using a relative path like
this.$axios.get('/staticFile')
, the baseURL (also available atthis.$axios.defaults.baseURL
) is hard-coded aslocalhost:3000
, which can be addressed by configuringbaseURL: '/'
in nuxt.config.js (or .ts, I think you could replace the .js when TypeScript is chosen - and when you do so, you'll realize tsconfig.json also lacksvuetify
type, just like@nuxtjs/axios
for axios).The text was updated successfully, but these errors were encountered: