sparse-intern-71089
06/02/2020, 10:37 PMgentle-diamond-70147
06/02/2020, 10:51 PMcalm-quill-21760
06/02/2020, 11:05 PMhundreds-musician-51496
06/03/2020, 12:53 AM// For each file in the directory, create an S3 object stored in `siteBucket`
walkSync(siteDir, (filePath) => {
const item = path.relative(siteDir, filePath).replace(/\\/g, "/");
// upload to new bucket
new aws.s3.BucketObject(`${item}-upd`, {
bucket: s3AppBucket,
key: item,
source: new pulumi.asset.FileAsset(filePath), // use FileAsset to point to a file
contentType: mime.getType(filePath) || undefined // set the MIME type of the file
});
// upload to legacy bucket while we aren't redirecting.
new aws.s3.BucketObject(item, {
bucket: legacyS3AppBucket,
key: item,
source: new pulumi.asset.FileAsset(filePath), // use FileAsset to point to a file
contentType: mime.getType(filePath) || undefined // set the MIME type of the file
});
})
The only change in this area is I updated the build so it doesn't produce source maps anymore.clever-plumber-29709
06/09/2020, 7:29 PMhundreds-musician-51496
06/09/2020, 7:37 PMaws
tool after deployment 😞. Hopefully a temporary workaround.