Access wrangler properties in code

Hi, can I access wrangler properties in code?
No description
5 Replies
Hard@Work
Hard@Work7mo ago
Just to check, what fields specifically are you looking to import from the wrangler config?
Kotkoroid
KotkoroidOP7mo 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@Work7mo ago
You can just import config from "../wrangler.jsonc or similar
Kotkoroid
KotkoroidOP7mo ago
Are you sure about that?
Hard@Work
Hard@Work7mo ago
Oh wait, nvm. If it is jsonc you can't import, but raw JSON should work

Did you find this page helpful?