-
|
I dont understand the difference between |
Beta Was this translation helpful? Give feedback.
Answered by
anntnzrb
Nov 26, 2025
Replies: 1 comment 1 reply
-
They're completely different purposes. For your setup: openFetch: {
clients: {
api: {
baseURL: 'http://localhost:8000', // actual API endpoint
schema: 'http://localhost:8000/openapi.json' // where to fetch the spec
}
}
}To your other questions:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Norbiros
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
baseURL= where API requests go at runtime (your actual backend URL)schema= where to get the OpenAPI spec file for generating types (build-time only)They're completely different purposes.
baseURLis runtime config,schemais dev/build-time.For your setup:
To your other questions:
clients.[name]— yeah, name it whatever you want (api,backend,myService, etc.)schemaoptional? — kinda. If omitted, it looks foropenapi/[clientName]/openapi.yamlby defaultopenapifolder needed? — only if you don't…