Skip to content

Commit

Permalink
Use soft denokv env var
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia committed Sep 25, 2024
1 parent 4b6c335 commit 302c66b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/actors/storage/denoKv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export interface StorageOptions {

const ACTORS_KV_DATABASE = Deno.env.get("ACTORS_KV_DATABASE") ??
join(Deno.cwd(), "kv");

const ACTORS_DENO_KV_TOKEN = Deno.env.get("ACTORS_DENO_KV_TOKEN");
ACTORS_DENO_KV_TOKEN &&
Deno.env.set("DENO_KV_ACCESS_TOKEN", ACTORS_DENO_KV_TOKEN);

const kv = await Deno.openKv(ACTORS_KV_DATABASE);

interface AtomicOp {
Expand Down

0 comments on commit 302c66b

Please sign in to comment.