https://github.com/neverendingqs/serverless-dotenv-example
https://github.com/neverendingqs/serverless-dotenv-example
code-examples serverless-examples serverless-framework
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/neverendingqs/serverless-dotenv-example
- Owner: neverendingqs
- License: apache-2.0
- Created: 2021-03-18T01:31:02.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-01T15:19:11.000Z (9 months ago)
- Last Synced: 2025-04-03T10:38:16.545Z (9 months ago)
- Topics: code-examples, serverless-examples, serverless-framework
- Language: JavaScript
- Homepage:
- Size: 789 KB
- Stars: 30
- Watchers: 2
- Forks: 4
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# serverless-dotenv-example
This is a simple example to how you can use `dotenv` with the [Serverless
Framework](https://www.serverless.com/) without using a
[plugin](https://github.com/neverendingqs/serverless-dotenv-plugin).
See the example in action by running the following:
```sh
npm i
npm run sls -- package
```
The logs and `.serverless/cloudformation-template-update-stack.json` show env vars being loaded by
`dotenv` as expected.
_Got a question or want to see more examples like this? Be sure to check out my [AMA repo](https://github.com/neverendingqs/ask-me-anything)!_