File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const EDGE_PORT = process.env.EDGE_PORT || DEFAULT_EDGE_PORT;
1818const DEFAULT_HOSTNAME = "localhost" ;
1919const LAMBDA_MOUNT_CODE = isEnvTrue ( "LAMBDA_MOUNT_CODE" ) ;
2020const PROTOCOL = isEnvTrue ( "USE_SSL" ) ? "https" : "http" ;
21+ const DEBUG_ON = process . env . DEBUG === "1" ;
2122
2223
2324//----------------
@@ -209,7 +210,10 @@ const patchToolkitInfo = (ToolkitInfo) => {
209210 } = require ( "aws-cdk/lib/api/bootstrap/bootstrap-props" ) ;
210211
211212 const setBucketUrl = function setBucketUrl ( object , bucket , domain ) {
212- console . debug ( "New bucketUrl" , `https://${ domain . replace ( `${ bucket } .` , "" ) } :${ EDGE_PORT } /${ bucket } ` ) ;
213+ if ( DEBUG_ON ) {
214+ console . debug ( "Old bucketUrl:" , object . bucketUrl ) ;
215+ console . debug ( "New bucketUrl:" , `https://${ domain . replace ( `${ bucket } .` , "" ) } :${ EDGE_PORT } /${ bucket } ` ) ;
216+ }
213217 Object . defineProperty ( object , "bucketUrl" , {
214218 get ( ) {
215219 return `https://${ domain . replace ( `${ bucket } .` , "" ) } :${ EDGE_PORT } /${ bucket } ` ;
You can’t perform that action at this time.
0 commit comments