Is there a way to set API baseUrl and other options when using @kubb/swagger-tanstack-query ? #1187
-
Hello ! I am wondering how can I set the base URL for an api when using hooks generated by Thanks in advance ! |
Beta Was this translation helpful? Give feedback.
Answered by
stijnvanhulle
Sep 3, 2024
Replies: 1 comment 1 reply
-
You can use a custom client like described here: https://v3.kubb.dev/knowledge-base/how-tos/fetch. There you could set a base URL or you could also set |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
obrassard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use a custom client like described here: https://v3.kubb.dev/knowledge-base/how-tos/fetch. There you could set a base URL or you could also set
serverIndex
: https://v3.kubb.dev/documentation/plugins/plugin-oas/#serverindex.