Skip to content

Commit

Permalink
fix pathing
Browse files Browse the repository at this point in the history
  • Loading branch information
cjtantay committed Jun 13, 2024
1 parent a1b326f commit c6edeab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c6edeab

Please sign in to comment.