Dotenv load deprecated since v7.0.0 (#34287)

This commit is contained in:
Mehmet Emin Gelmedi
2019-03-29 11:43:53 -07:00
committed by Ron Buckton
parent 53b73abbb3
commit 07fb19f5dc
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import dotenv = require("dotenv");
const env = dotenv.config();
const dbUrl: string | null = env.error || !env.parsed ? null : env.parsed["BASIC"];
dotenv.load({
dotenv.config({
path: ".env-example",
encoding: "utf8",
debug: true
+1
View File
@@ -62,4 +62,5 @@ export interface DotenvConfigOutput {
*
*/
export function config(options?: DotenvConfigOptions): DotenvConfigOutput;
/** @deprecated since v7.0.0 Use config instead. */
export const load: typeof config;