enkot / nuxt-open-fetch

Generate zero-overhead, typed OpenAPI clients for Nuxt.
https://nuxt-open-fetch.vercel.app
MIT License
134 stars 12 forks source link

Is it possible to dynamically change baseURL of a client ? #42

Closed GreyXor closed 3 months ago

GreyXor commented 4 months ago

Hello, now i'm doing this

  useApi('/foo', {
    baseURL: serverStore.host,
  })

Because sometime I need to use another host. Is it the only way to dynamically change the baseURL or can we also change the default baseURL for all client ? Thanks

enkot commented 3 months ago

@GreyXor If you need to change it

enkot commented 3 months ago

I activated the Discussions, you can ask any question there 💪