diff --git a/packages/specs/swagger/scripts/constants.js b/packages/specs/swagger/scripts/constants.js index 01970f2321e..4ed61e8221f 100644 --- a/packages/specs/swagger/scripts/constants.js +++ b/packages/specs/swagger/scripts/constants.js @@ -2,6 +2,6 @@ import {dirname} from "node:path"; import {fileURLToPath} from "node:url"; // @ts-ignore -export const SWAGGER_UI_DIST = dirname(import.meta.resolve("swagger-ui-dist")); +export const SWAGGER_UI_DIST = dirname(import.meta.resolve("swagger-ui-dist")).replace("file://", ""); // @ts-expect-error export const ROOT_DIR = dirname(fileURLToPath(import.meta.url));