Skip to content

Fix dotenv configuration to allow .env.local to override .env values #1010

@coderabbitai

Description

@coderabbitai

Problem

The current dotenv configuration in components/log-viewer-webui/server/src/fastify-v2/plugins/external/env.ts does not include the override: true flag. According to the dotenv documentation, without this flag, when the same environment variable is defined in both .env and .env.local, the value from .env.local will not override the one from .env.

Current Configuration

dotenv: {
    path: [
        ".env",
        ".env.local",
    ],
},

Proposed Solution

dotenv: {
    path: [
        ".env",
        ".env.local",
    ],
    override: true,
},

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions