Skip to content

Broken order for environment specific files #48

@jakubsindelar-mountfieldcz

Description

Package version

7.0.0

Describe the bug

It seems that .env.[NODE_ENV] is loaded with lower prio than .env
Currently when I create new adonis project I cannot override values set in .env with values set in .env.development, only in .env.local

Example with .env winning, which is unexpected

.env
PORT=3000
.env.development
PORT=3222

Running npm run dev or node ace commands results in PORT=3000 and NODE_ENV=development

Example with .env.local winning as expected

.env
PORT=3000
.env.development
PORT=3222
.env.local
PORT=3333

Running npm run dev or node ace commands results in PORT=3333 and NODE_ENV=development

Reproduction repo

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions