Template
1
0

feat: add payment module

This commit is contained in:
2025-12-05 01:56:42 +01:00
parent a818f3135a
commit be9b8e9e55
160 changed files with 8615 additions and 1158 deletions

View File

@@ -1,6 +1,8 @@
import { join } from "node:path";
import { load } from "@std/dotenv";
const env = await load();
const env = await load({ envPath: getDotEnvPath(), export: true });
/**
* TODO ...
@@ -8,3 +10,11 @@ const env = await load();
export function getDotEnvVariable(key: string): string {
return env[key] ?? Deno.env.get(key);
}
function getDotEnvPath(): string {
const dirname = import.meta.dirname;
if (dirname === undefined) {
throw new Error("Unable to determine dirname in config");
}
return join(dirname, "..", "..", ".env");
}