Skip to content

Commit

Permalink
fix(swagger): fix resolved swagger ui asset path for ESM version
Browse files Browse the repository at this point in the history
Closes: #2683
  • Loading branch information
Romakita committed Apr 27, 2024
1 parent 501f4dd commit a507869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/specs/swagger/scripts/constants.js
Expand Up @@ -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));

0 comments on commit a507869

Please sign in to comment.