© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Pages/Workers not picking up NextJS .env vars - Cloudflare Developers
CD
Cloudflare Developers
•
2y ago
•
8 replies
kyle
Pages/Workers not picking up NextJS .env vars
I
'm trying to deploy a NextJS
-based Page
(
+ route handlers which iiuc are deployed as Workers
)
, and it doesn
't seem to be picking up my
.env
.env
vars
. It only works if I input them manually into the dashboard
. Weird because the build logs always says it pulls in
.env
.env
. Do I need to use
.toml
.toml
or something
?
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
86,942
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Env vars not being loaded on CF Pages domain
CD
Cloudflare Developers / pages-help
3y ago
Does Pages Build include user-specified ENV vars? They are not showing up
CD
Cloudflare Developers / pages-help
4y ago
Astro + env vars
CD
Cloudflare Developers / pages-help
2y ago
pages environment vars
CD
Cloudflare Developers / pages-help
3y ago