chore: Improve deprecation warning related to .env files (#8926)

This commit is contained in:
Mike Fogel 2021-02-11 07:44:27 -03:00 committed by GitHub
parent c8547e8752
commit 9e32dc40bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,8 +214,9 @@ class Serverless {
if (doesDefaultEnvFileExists || doesStageEnvFileExists) {
this._logDeprecation(
'LOAD_VARIABLES_FROM_ENV_FILES',
'Detected ".env" files. Note that Framework now supports loading variables from those files ' +
'when "useDotenv: true" is set (and that will be the default from next major release)'
'Detected ".env" files. In the next major release variables from ".env" ' +
'files will be automatically loaded into the serverless build process. ' +
'Set "useDotenv: true" to adopt that behavior now.'
);
}
}