Skip to content

Commit ccbf274

Browse files
committed
Refactor a bit
1 parent 93f1105 commit ccbf274

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/cdklocal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,14 @@ const patchCurrentAccount = (SDK) => {
206206

207207
const patchToolkitInfo = (ToolkitInfo) => {
208208
const setBucketUrl = function setBucketUrl(object, bucket, domain) {
209+
const newBucketUrl = `https://${domain.replace(`${bucket}.`, "")}:${EDGE_PORT}/${bucket}`;
209210
if (DEBUG_ON) {
210211
console.debug("Old bucketUrl:", object.bucketUrl);
211-
console.debug("New bucketUrl:", `https://${domain.replace(`${bucket}.`, "")}:${EDGE_PORT}/${bucket}`);
212+
console.debug("New bucketUrl:", newBucketUrl);
212213
}
213214
Object.defineProperty(object, "bucketUrl", {
214215
get() {
215-
return `https://${domain.replace(`${bucket}.`, "")}:${EDGE_PORT}/${bucket}`;
216+
return newBucketUrl;
216217
}
217218
});
218219
};

0 commit comments

Comments
 (0)