fix: env logging

This commit is contained in:
neil 2022-10-27 14:28:08 +08:00
parent 14d6f79d75
commit 68ebb773e5

View file

@ -24,7 +24,7 @@ const ipfsUpload = async (event: S3CreateEvent) => {
const cidHash = cid[0].hash const cidHash = cid[0].hash
console.log({cidHash}) console.log({cidHash})
console.log("process.env.BUCKET: ", process.env.BUCKET) console.log("process.env.AWS_DIST_BUCKET: ", process.env.AWS_DIST_BUCKET)
console.log("Path: ", record.s3.object.key + ".cid") console.log("Path: ", record.s3.object.key + ".cid")
const s3Ack = await s3.putObject({ const s3Ack = await s3.putObject({