Next.js Discord

Discord Forum

Linux Environment file detection

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
Dear Next Community

I am currently trying to deploy my NextJS application on a Debian 12 machine and am facing issues regarding the Environment files. Next does not seem to be detecting my Dotenv file. I have tested following file extensions.

Working filenames
.env, .env.local


Not working filenames
.env.development, .env.production *and basically any other extension


Am i the only one experiencing this issue or has anyone else faced this issue?

0 Replies