Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotenv: Warn about using DENO_ prefixed variables #6127

Open
ycmjason opened this issue Oct 19, 2024 · 0 comments
Open

dotenv: Warn about using DENO_ prefixed variables #6127

ycmjason opened this issue Oct 19, 2024 · 0 comments

Comments

@ycmjason
Copy link

ycmjason commented Oct 19, 2024

I recently encountered an issue while trying to use the DENO_KV_PATH environment variable that will be used in openKv on Deno Deploy.

The problem is that it consistently fails, and after checking the logs, it appears that Deno Deploy doesn't allow environment variables prefixed with DENO_. The error message I received was:

Env vars cannot begin with DENO_

Upon renaming the env variable to CUSTOM_DENO_KV_PATH it starts working again.

I haven’t seen this limitation documented anywhere for Deno Deploy, but I think it’s something worth highlighting. It would also be helpful if dotenv could issue a warning when this happens.

Just thought it might be useful to bring this to your attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant