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

Configuration error at 'useDotenv': should be equal to constant #125

Open
Ali-sharafi-git opened this issue Jan 17, 2022 · 2 comments
Open

Comments

@Ali-sharafi-git
Copy link

Describe the bug
Configuration error at 'useDotenv': should be equal to constant

To Reproduce
Steps to reproduce the behavior:
"@flowaccount/nx-serverless": "^1.0.0-beta.6"

Screenshots
image

Check which provider is affected:
[] AWS

Check which framework is affected:
[] Nodejs
[] Serverless
[] Lambda

Additional context
There is a line in @flowaccount\nx-serverless\src\utils\serverless.js which sets useDotenv to false.
configurationInput.useDotenv = false;

However the only accepted value is true based on this issue

@Ali-sharafi-git Ali-sharafi-git changed the title [BUG] Configuration error at 'useDotenv': should be equal to constant Jan 17, 2022
@wickstargazer
Copy link
Member

Could you try 1.1.2 and see? We already moved out of beta

@AtlasRW
Copy link

AtlasRW commented Mar 10, 2022

I can confirm there is the same error with 1.1.2, and adding useDotenv: true in my serverless.yml didn't fix this, but my environment variables in my .env are working tho

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

3 participants