Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
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
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
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
3y ago
Astro + env vars
CD
Cloudflare Developers / pages-help
17mo ago
pages environment vars
CD
Cloudflare Developers / pages-help
3y ago