Skip to content

Commit

Permalink
updated relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
ntotten committed Dec 20, 2024
1 parent f90cd10 commit 23fe949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mdx/static-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const rehypeStaticImages: Plugin<[], Root, Root> =
if (!node.properties.src.startsWith("http")) {
let url = node.properties.src;
const relativePath = url.startsWith("/public/")
? url.substring("/public/".length)
? `/docs${url.substring("/public".length)}`
: url;
if (process.env.USE_IMAGE_CDN) {
node.properties.src = `https://cdn.zuplo.com${relativePath}`;
Expand Down

0 comments on commit 23fe949

Please sign in to comment.