Skip to content

Commit b633320

Browse files
Fix implementation for code generation to support full urls
1 parent 12e9d15 commit b633320

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

devTools/sanity/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,14 @@ transformationStrings.forEach(async (txString, i) => {
4848

4949
console.log('Processing transformation:', i);
5050

51+
let url = `https://res.cloudinary.com/demo/image/upload/${txString}/sample`;
52+
if (txString.startsWith('http')) {
53+
url = txString;
54+
};
55+
5156
const queryArgs = {
5257
framework: 'js_2',
53-
url: `https://res.cloudinary.com/demo/image/upload/${txString}/sample`,
58+
url,
5459
hideActionGroups:0
5560
};
5661

0 commit comments

Comments
 (0)