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,