© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3y ago•
13 replies
stormcph

worker environment variables, please help :)

I am pretty new to Cloudflare workers, I am using it for a personal app. my problem is that when i try to access my environment variables inside of the worker i simply get an error. now im pretty sure that its because im using javascript and not typescript, can anyone help me? thanks!

(the doc i read that sadly didnt work) https://developers.cloudflare.com/workers/configuration/environment-variables/
Environment variables · Cloudflare Workers docs
Attach text strings and JSON values as environment variables to your Worker. Environment variables are available on the env parameter passed to your …
Environment variables · Cloudflare Workers docs
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

CF Worker not getting environment variables
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
4mo ago
next.js worker not finding environment variables
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
16mo ago