nuxt-open-fetch icon indicating copy to clipboard operation
nuxt-open-fetch copied to clipboard

Is it possible to dynamically change baseURL of a client ?

Open GreyXor opened this issue 1 year ago • 0 comments

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

GreyXor avatar May 06 '24 18:05 GreyXor