Skip to content

How to handle the wrangler.toml configuration file? #7115

Answered by emily-shen
TinsFox asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! It's fine to have a public wrangler.toml and include values like KV namespace ids, account ids, bucket names etc.

However, if you have something like an API keys however, you should use secrets, which are an environment variable that is not included your wrangler.toml file. I note that you do seem to have an API key set using regular environment variables - you should definitely not commit this as-is!

Hope that helps :)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@TinsFox
Comment options

Answer selected by TinsFox
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