tigawana
tigawana8mo 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
lcasdev8mo ago
Are you loading the .env with --env?
tigawana
tigawana8mo ago
.env
lcasdev
lcasdev8mo ago
Do you pass the flag I mentioned to deno run?
tigawana
tigawana8mo ago
no , am not pssing in --env
lcasdev
lcasdev8mo ago
Pass that flag, otherwise Deno won’t lead your .env file