Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Can i set `.env` file path inside `nuxt.config.ts`? - Nuxt
N
Nuxt
•
3y ago
•
9 replies
oemer
Can i set `.env` file path inside `nuxt.config.ts`?
I know I can use
yarn dev --dotenv ../.env
yarn dev --dotenv ../.env
. But I want to define this inside
nuxt.config.ts
nuxt.config.ts
. Is this possible
?
Nuxt
Join
Nuxt Community Chat Server
31,686
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
nuxt.config.ts - runtimeconfig - .env
N
Nuxt / ❓・help
5mo ago
Accessing PM2 environment variables inside nuxt.config.ts ?
N
Nuxt / ❓・help
2y ago
nuxt generate sets process.env.NODE_ENV to prerender after nuxt.config.ts
N
Nuxt / ❓・help
2y ago