Update packages/providers/upload-aws-s3/lib/index.js

Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
This commit is contained in:
v-dimitroff 2022-09-08 11:21:28 +03:00 committed by GitHub
parent 659528c78c
commit 1c3106bc74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ const _ = require('lodash');
const AWS = require('aws-sdk');
module.exports = {
init({baseUrl, rootPath = "", s3Options, ...legacyS3Options}) {
init({baseUrl = null, rootPath = null, s3Options, ...legacyS3Options}) {
if(legacyS3Options && process.env.NODE_ENV !== 'production')
console.log("S3 configuration options passed at root level of the plugin's providerOptions is deprecated and will be removed in a future release. You wrap them inside the 's3Options:{}' property.")