Build is not taking correct .env
Unanswered
Dwarf Crocodile posted this in #help-forum
Original message was deleted.
2 Replies
Dwarf Crocodile
when i build locally, i get this in terminal:
npm run build
> frontend2025@0.1.0 build
> next build
▲ Next.js 15.1.7
- Environments: .env.local, .env.production
Creating an optimized production build ...
Dwarf Crocodile
i just renamed:
.env.local to .env.development
.env.production to .env
Now i see this:
whats happening
.env.local to .env.development
.env.production to .env
Now i see this:
npm run build
> frontend2025@0.1.0 build
> next build
▲ Next.js 15.1.7
- Environments: .env
Creating an optimized production build ...
whats happening