Skip to content

Commit eeac869

Browse files
committed
fix: update dotenv import and usage to load function
1 parent b183cdb commit eeac869

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/backend/dependencies.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import { create, verify } from "https://deno.land/x/djwt@v2.9.1/mod.ts";
1010
import { exec } from "https://deno.land/x/exec@0.0.5/mod.ts";
1111
import * as Sentry from 'https://deno.land/x/sentry/index.mjs';
1212
import { oakCors } from "https://deno.land/x/cors@v1.2.2/mod.ts";
13-
import { config } from "https://deno.land/std@0.224.0/dotenv/mod.ts";
13+
import { load } from "https://deno.land/std@0.224.0/dotenv/mod.ts";
1414
import { MongoClient, ObjectId } from "https://deno.land/x/mongo@v0.33.0/mod.ts";
1515

1616
try {
17-
await config({ export: true }); // Try default .env in CWD
17+
await load({ export: true }); // Try default .env in CWD
1818
// If running from root, try loading src/backend/.env
19-
await config({ export: true, path: "./src/backend/.env" });
19+
await load({ export: true, envPath: "./src/backend/.env" });
2020
} catch (e) {
2121
// Ignore errors if file already loaded or not found
2222
}

0 commit comments

Comments
 (0)