From 9e32dc40bcf89bcd8fdb1bf657bb673600945a5d Mon Sep 17 00:00:00 2001 From: Mike Fogel Date: Thu, 11 Feb 2021 07:44:27 -0300 Subject: [PATCH] chore: Improve deprecation warning related to .env files (#8926) --- lib/Serverless.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Serverless.js b/lib/Serverless.js index d4706a312..a11176b3c 100644 --- a/lib/Serverless.js +++ b/lib/Serverless.js @@ -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.' ); } }