Closed momegas closed 11 months ago
The docsConfig
values only change the HTML meta tag values of the generated docs frontend. You can override the texts using the openApiSpecOverrides
config option which changes the generated openapi.json
spec, so your config should look something like this:
export const GET = defineDocsRoute({
openApiSpecOverrides: {
info: {
title:'Squaredev API',
description: 'Squaredev API',
}
},
docsConfig: {
title: 'Squaredev API',
description: 'Squaredev API',
logoUrl: 'https://squaredev.io/wp-content/uploads/2022/08/Squaredev-B2.png',
},
});
I do admit though that this is a bit confusing, so maybe I could simplify these options a bit.
This should be fixed in the latest release, the docs config options should now take precedence.
Yup indeed it is. I spent some time before opening the issue and couldnt find something.
This code:
Results in this docs page.
The expected results is that the texts should be changing.