© 2026 Hedgehog Software, LLC

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

Remix, Cloudflare Pages and Context/Env variables

I am working on a project with Remix and Cloudflare Pages. So far everything works fine but I can't figure out how I access context or environment variables in loader functions on Cloudflare Functions (server side). For example I want to access KV in a Cloudflare function that is called from a loader function in Remix. Everything I have tried (context.env.KV_NAME or env.KV_NAME) doesn't work in my server.ts file. Does anyone know how I access the context or env in a Cloudflare Function in a Remix project?
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
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Cloudflare Pages, Remix with Sentry
Cloudflare DevelopersCDCloudflare Developers / pages-help
3y ago
.env variables not working with Remix + Vite
Cloudflare DevelopersCDCloudflare Developers / pages-help
2y ago
Need Help - Remix + Vite (Cloudflare Pages)
Cloudflare DevelopersCDCloudflare Developers / pages-help
2y ago
Remix-Sanity-Cloudflare Pages-Github Actions
Cloudflare DevelopersCDCloudflare Developers / pages-help
3y ago