Skip to content

Commit 3f4dcca

Browse files
committed
adding prefix slash to cld path
1 parent 5c2b6d9 commit 3f4dcca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = {
5757
await Promise.all(imagesFiles.map(async file => {
5858
const filePath = file.replace(PUBLISH_DIR, '');
5959

60-
const cldAssetPath = path.join(PUBLIC_ASSET_PATH, filePath);
60+
const cldAssetPath = `/${path.join(PUBLIC_ASSET_PATH, filePath)}`;
6161
const cldAssetUrl = `${host}/${cldAssetPath}`;
6262

6363
const assetRedirectUrl = await getCloudinaryUrl({

0 commit comments

Comments
 (0)