I was using serverless templates and all worked fine until suddenly all my deployments started ignoring .env
files.
I searched through the documentation and it says that if I want to use the environment variables from .env files I now have to add useDotenv: true
in my serverless.yml
file. So I did:
app: xxx
org: xxx
useDotenv: true
There was no effect.
My serverless.yml
file contained nothing else before but the app and org variables.
Where do I need to add the seDotenv: true
in order to make it read my .env
variables?
service
definition is, e.g.service: my-service
then next line on that level adduseDotenv: true
. Which Serverless version are you using? – Ambassadress