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
As of nuxt 3.14, using a function for the schema prints this to console.
WARN Runtime config option apiParty.endpoints.foo.schema may not be able to be serialized.
I suggest using a hook that can update the endpoint. Hooks could also be added to intercept the API requests. Adding authorization, extra headers, request filtering, etc.
It would be used similarly to this.
// nuxt.config.tsexportdefaultdefineNuxtConfig({modules: ['nuxt-api-party'],apiParty: {endpoints: {foo: {url: 'http://localhost:8000'}}},// new hooks used instead of functionhooks: {'api-party:resolve': async(id,endpoint)=>{// set the schema valueendpoint.schema={// TODO}},}})
Describe the feature
As of nuxt 3.14, using a function for the schema prints this to console.
I suggest using a hook that can update the endpoint. Hooks could also be added to intercept the API requests. Adding authorization, extra headers, request filtering, etc.
It would be used similarly to this.
Additional possible hooks
Additional information
Final checks
The text was updated successfully, but these errors were encountered: