Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
server dir with nextjs and drizzle - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
2y ago
•
3 replies
its.elite
server dir with nextjs and drizzle
So Im configuring a drizzle and nextjs app router application
In the server directory
, my env keys dont work unless i add
:
import
{config}
from
'dotenv'
;
config
({
path:
'.env'
,
});
import
{config}
from
'dotenv'
;
config
({
path:
'.env'
,
});
is there a reason for this
?
i thought I jsut need to do process
.env
.VALUE
(works in api routes
)
Theo's Typesafe Cult
Join
26,131
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
SSR with NextJs layouts (page dir)
TTC
Theo's Typesafe Cult / questions
3y ago
drizzle + next app dir
TTC
Theo's Typesafe Cult / questions
3y ago
Communication with server and client <nextjs>
TTC
Theo's Typesafe Cult / questions
2y ago
Guidance / Guide / Repo with monorepo separate server & client NextJS with App Dir, tRPC
TTC
Theo's Typesafe Cult / questions
2y ago