How do i create a working wrangler.toml file from quickedit?

I'm using cloudflare workers, and im editing my worker with cloudflare's Quick Edit. when just using env.MY_KV_NAMESPACE, couldnt get the values in it, so i figured i should create a wrangler.toml file. when i do create one, and put the 3 required fields, along with the kv namespace, it doesnt work, and sends error:
Script modified; context reset
Script modified; context reset
what am i doing wrong? if im creating the file wrong, how do i do it correctly from quickedit?
2 Replies
kian
kian17mo ago
Wrangler.toml is only for Wrangler, not Quick Edit
ShaharMS
ShaharMSOP17mo ago
ah, so how do i access my KV namespace from quickedit? resolved, just used wrangler
Want results from more Discord servers?
Add your server