Skip to content

.env location in addition to useDotenv parameter #10641

@AlexHladin

Description

@AlexHladin

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Use case description

The use case is next:
I have a serverless configuration in the API folder, but my .env file exists on one directory level above, example below:

-- api
--- serverless.yml
-.env

Proposed solution (optional)

My solution for this is next: add one more parameter dotEnvFileLocation which will contain relative to serverles.yml path to .env file. The parameter name could be different, just my thoughts.

Metadata

Metadata

Assignees

Labels

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions