@darthcav/ts-http-server
    Preparing search index...

    Function defaultPlugins

    • Builds the default plugin map for use with launcher.

      Registers: @fastify/accepts, @fastify/compress, @fastify/cors, @fastify/etag, @fastify/helmet, @fastify/view (EJS), @fastify/static, @fastify/swagger, and @fastify/swagger-ui.

      Synchronously reads and resolves all $ref schema files from src/openapi/schemas/ before building the plugin map, so @fastify/swagger receives a fully inlined document.

      Parameters

      • opts: DefaultPluginsOptions

        Options accepted by the defaultPlugins function.

        • OptionalbaseDir?: string | null

          Optional base directory for resolving the src/ folder; defaults to the parent of import.meta.dirname.

        • OptionalkeycloakAuth?: KeycloakAuthConfig

          Optional Keycloak configuration used to mark the generated /api/ OpenAPI operations as OpenID Connect–protected.

        • locals: LauncherLocals

          Application locals; locals.pkg is exposed as the default EJS context.

      Returns Map<string, FSTPlugin>

      A Map of plugin names to plugin entries, suitable for passing as the plugins field of LauncherOptions.