From c6edeab479d364dd54d1404f81e9ece4a1347916 Mon Sep 17 00:00:00 2001 From: "C. J. Tantay" Date: Thu, 13 Jun 2024 02:17:19 -0700 Subject: [PATCH] fix pathing --- lib/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index bc779bea..a0206af9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -484,8 +484,7 @@ export class Baker extends EventEmitter { ) { return data.map((d) => { const staticImgPath = this.getStaticPath(join(crosswalkPath, d.img)); - const path = [this.pathPrefix, staticImgPath].join(''); - const imageSrc = new URL(path, this.domain).href; + const imageSrc = new URL(staticImgPath, this.domain).href; if (d.img) { return { ...d,