You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,10 +113,10 @@ We use Jest to run our tests. You can read more about setting up your tests [her
113
113
114
114
To add environment variables to your project
115
115
116
-
1. Rename `env.example` to `env.yml`.
117
-
2. Add environment variables for the various stages to `env.yml`.
118
-
3. Uncomment `environment: ${file(env.yml):${self:provider.stage}}` in the `serverless.yml`.
119
-
4. Make sure to not commit your `env.yml`.
116
+
1. Rename `env.example` to `.env`.
117
+
2. Add environment variables for your local stage to `.env`.
118
+
3. Uncomment `environment:` block in the `serverless.yml` and reference the environment variable as `${env:MY_ENV_VAR}`. Where `MY_ENV_VAR` is added to your `.env` file.
0 commit comments