Access wrangler properties in code

Hi, can I access wrangler properties in code?
No description
5 Replies
Hard@Work
Hard@Work2d ago
Just to check, what fields specifically are you looking to import from the wrangler config?
w7a9q
w7a9qOP2d ago
I would like to use the value from wrangler config instead of duplicating it into a constant. It's about queues.consumers.retry_delay.
Hard@Work
Hard@Work2d ago
You can just import config from "../wrangler.jsonc or similar
w7a9q
w7a9qOP2d ago
Are you sure about that?
Hard@Work
Hard@Work2d ago
Oh wait, nvm. If it is jsonc you can't import, but raw JSON should work

Did you find this page helpful?