diff --git a/packages/core/src/routes/swagger/index.ts b/packages/core/src/routes/swagger/index.ts index ccab819a2..7ae730197 100644 --- a/packages/core/src/routes/swagger/index.ts +++ b/packages/core/src/routes/swagger/index.ts @@ -2,13 +2,14 @@ import fs from 'node:fs/promises'; import { fileURLToPath } from 'node:url'; import { httpCodeToMessage } from '@logto/core-kit'; -import { conditionalArray, deduplicate } from '@silverhand/essentials'; +import { condString, conditionalArray, deduplicate } from '@silverhand/essentials'; import deepmerge from 'deepmerge'; import { findUp } from 'find-up'; import type { IMiddleware } from 'koa-router'; import type Router from 'koa-router'; import type { OpenAPIV3 } from 'openapi-types'; +import { EnvSet } from '#src/env-set/index.js'; import { isKoaAuthMiddleware } from '#src/middleware/koa-auth/index.js'; import type { WithGuardConfig } from '#src/middleware/koa-guard.js'; import { isGuardMiddleware } from '#src/middleware/koa-guard.js'; @@ -189,7 +190,12 @@ export default function swaggerRoutes