A simple way to read from wrangler.toml
hello n.n , Im new working with cloudflare and I trying to understand how the wrangler.toml works, so I want to make a simple worker taht redirect to the google page but reading the url from the wrangler.toml file using typescript in my local machine, I have tried several ways but I still dont get it, thanks in advance
4 Replies
you want to be accessing the URL in your wrangler.toml via the environment variable
Environment variables · Cloudflare Workers docs
Attach secrets, text strings, and JSON values as environment variables to your Worker. Environment variables are available on the env parameter passed …
im trying the example code and its throwing me this error
nevermind i get it, missing the return response statement