tigawana
tigawana6mo ago

Remote KV access error : Missing DENO_KV_ACCESS_TOKEN environment variable

i wen through the recomnded steps of adding a .env to the root of the project and adding
DENO_KV_ACCESS_TOKEN=ddp_an_access_token
DENO_KV_ACCESS_TOKEN=ddp_an_access_token
but it's still giving that env not found error
5 Replies
lcasdev
lcasdev6mo ago
Are you loading the .env with --env?
tigawana
tigawana6mo ago
.env
lcasdev
lcasdev6mo ago
Do you pass the flag I mentioned to deno run?
tigawana
tigawana6mo ago
no , am not pssing in --env
lcasdev
lcasdev6mo ago
Pass that flag, otherwise Deno won’t lead your .env file