Skip to content
Discussion options

You must be logged in to vote

Deno recommends using native environment variables via Deno.env.get() and controlling access with the --allow-env permission. For local development, you can use a .env file with --env-file, but in production, environment variables should be injected by the deployment platform (Docker, systemd, CI/CD, or cloud provider), not loaded from files at runtime.
I hope this answer helps you, good luck

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hunter-XV
Comment options

@KhalilBensaha
Comment options

Answer selected by hunter-XV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants