diff --git a/config.ts b/config.ts index 22b84ac..630cf6c 100644 --- a/config.ts +++ b/config.ts @@ -2,7 +2,7 @@ import { load } from "@std/dotenv"; import { parse } from "jsr:@std/yaml"; import { log } from "./log.ts"; -const dirname = new URL(".", import.meta.url).pathname; +const dirname = Deno.cwd(); await load({ envPath: `${dirname}/.env`, export: true }); let staticUsers: { [key: string]: string } = {};