Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
`env.mjs` as opposed to `env.cjs` or `env.js` - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
10 replies
MrLowLevel
`env.mjs` as opposed to `env.cjs` or `env.js`
Heya
, is there a reason why the env definition is in an
mjs
mjs
file as opposed to
cjs
cjs
or simply
js
js
? Reason I
'm asking is because I
'm trying to setup websockets and
mjs
mjs
won
't work as we
're compiling with
commonjs
commonjs
.
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
env.mjs - Use as const
TTC
Theo's Typesafe Cult / questions
3y ago
env schema.mjs reading values as number
TTC
Theo's Typesafe Cult / questions
4y ago
client.mjs, server.mjs, process.env
TTC
Theo's Typesafe Cult / questions
4y ago