How to access env variable containing an object

I have the following in my .dev.vars file: FOO = { bar = true, baz = 5} and now I'm trying to access it from my Worker, with env.FOO.bar but that doesn't work (returns undefined). Any ideas?
1 Reply
Sam
Sam13mo ago
If I'm right, enviroment variables don't support that. You need to stringify the object, and parse it in your worker js/ts file,
Want results from more Discord servers?
Add your server