Skip to content

Commit

Permalink
fix(merc): REVERT MERC-9364 Use CDN Original images
Browse files Browse the repository at this point in the history
  • Loading branch information
kchu93 committed Aug 15, 2023
1 parent 0fea75f commit be4dfdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helpers/lib/cdnify.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = globals => {
}

if (protocol === 'webdav:') {
return [cdnUrl, 'images/stencil/original', 'content', path].join('/');
return [cdnUrl, 'content', path].join('/');
}

if (cdnSettings) {
Expand Down
6 changes: 3 additions & 3 deletions spec/helpers/cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,15 @@ describe('cdn helper', function () {
runTestCases([
{
input: '{{cdn "webdav:img/image.jpg"}}',
output: 'https://cdn.bcapp/3dsf74g/images/stencil/original/content/img/image.jpg',
output: 'https://cdn.bcapp/3dsf74g/content/img/image.jpg',
},
{
input: '{{cdn "webdav:/img/image.jpg"}}',
output: 'https://cdn.bcapp/3dsf74g/images/stencil/original/content/img/image.jpg',
output: 'https://cdn.bcapp/3dsf74g/content/img/image.jpg',
},
{
input: '{{cdn "webdav://img/image.jpg"}}',
output: 'https://cdn.bcapp/3dsf74g/images/stencil/original/content/img/image.jpg',
output: 'https://cdn.bcapp/3dsf74g/content/img/image.jpg',
},
], done);
});
Expand Down

0 comments on commit be4dfdb

Please sign in to comment.