Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable priority #177

Closed
MajorCaiger opened this issue Apr 3, 2023 · 1 comment
Closed

Environment variable priority #177

MajorCaiger opened this issue Apr 3, 2023 · 1 comment

Comments

@MajorCaiger
Copy link
Contributor

Hi

We noticed that the priority of environment variable source is different in serverless-offline-sns compared to serverless-offline.

serverless-offline merges in the following order:

process.env
provider.env
function.env

serverless-offline-sns merges in this order:

provider.env
process.env
function.env

I've raised a PR to tweak the order to match serverless-offline

#176

Thanks

@dsarlo
Copy link
Collaborator

dsarlo commented Oct 29, 2023

Closing - will take a look at the PR #176

@dsarlo dsarlo closed this as completed Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants