-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
There is some way to disable the pre-render when using this plugin? I am using an authentication middleware on my documentation, and would like to block some requests.
To Reproduce
Using an authentication middleware won't work because of the following snippet:
export function starlightOpenAPIIntegration(schemas: Schema[]): AstroIntegration {
const starlightOpenAPI: AstroIntegration = {
name: 'starlight-openapi',
hooks: {
'astro:config:setup': ({ injectRoute, updateConfig }) => {
injectRoute({
entrypoint: 'starlight-openapi/route',
pattern: `[...openAPISlug]`,
prerender: true,
})
updateConfig({
vite: {
plugins: [vitePluginStarlightOpenAPISchemas(schemas)],
},
})
},
},
}
return starlightOpenAPI
}Expected behavior
An option to disable the pre-render
How often does this bug happen?
Every time
System Info
No response
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request