OptionalbaseOptional base directory for resolving the src/ folder; defaults to the parent of import.meta.dirname.
OptionalcorsOptions forwarded to @fastify/cors. Merged over a secure default of
{ origin: false }, which disables cross-origin requests (same-origin
only). To allow specific origins, set cors: { origin: [...] } with an
explicit allowlist; avoid origin: true (reflects every origin) in
production.
OptionaldocsWhether to register Swagger UI (/docs) and the OpenAPI spec endpoints.
These publish the full endpoint map and are reachable unauthenticated, so
they are disabled in production by default. When omitted, defaults to
true unless NODE_ENV === "production", in which case it defaults to
false. Set explicitly to override.
OptionalkeycloakOptional Keycloak configuration used to mark the generated /api/ OpenAPI operations as OpenID Connect–protected.
Application locals; locals.pkg is exposed as the default EJS context.
Options accepted by the defaultPlugins function.