tstachlewski / aws-polska

1 stars 1 forks source link

AWS Geo-location issue #1

Open FIKUS0FIN opened 5 years ago

FIKUS0FIN commented 5 years ago

TypeError: Cannot read property 's3' of undefined

Following code block provides errors

if (countryCode === 'UA') { console.log("it works teal here"); headers['host'] = [{key: 'host', value: originA}]; origin.s3.domainName = originA; <<--- HERE console.log("This is Ukraine");

FIKUS0FIN commented 5 years ago
    if (countryCode === 'UA') {
        console.log("it works teal here");
        headers['host'] = [{key: 'host',          value: originA}];
        origin.s3.domainName = originA;
        console.log("This is Ukraine");