├── rails
├── fly
│ ├── log
│ │ └── .keep
│ ├── storage
│ │ └── .keep
│ ├── tmp
│ │ ├── .keep
│ │ ├── pids
│ │ │ └── .keep
│ │ └── storage
│ │ │ └── .keep
│ ├── vendor
│ │ ├── .keep
│ │ └── javascript
│ │ │ └── .keep
│ ├── lib
│ │ ├── assets
│ │ │ └── .keep
│ │ └── tasks
│ │ │ └── .keep
│ ├── public
│ │ ├── favicon.ico
│ │ ├── apple-touch-icon.png
│ │ ├── apple-touch-icon-precomposed.png
│ │ └── robots.txt
│ ├── test
│ │ ├── helpers
│ │ │ └── .keep
│ │ ├── mailers
│ │ │ └── .keep
│ │ ├── models
│ │ │ └── .keep
│ │ ├── system
│ │ │ └── .keep
│ │ ├── controllers
│ │ │ └── .keep
│ │ ├── integration
│ │ │ └── .keep
│ │ ├── fixtures
│ │ │ └── files
│ │ │ │ └── .keep
│ │ ├── application_system_test_case.rb
│ │ └── channels
│ │ │ └── application_cable
│ │ │ └── connection_test.rb
│ ├── .ruby-version
│ ├── app
│ │ ├── assets
│ │ │ ├── images
│ │ │ │ └── .keep
│ │ │ └── config
│ │ │ │ └── manifest.js
│ │ ├── models
│ │ │ ├── concerns
│ │ │ │ └── .keep
│ │ │ └── application_record.rb
│ │ ├── controllers
│ │ │ ├── concerns
│ │ │ │ └── .keep
│ │ │ ├── application_controller.rb
│ │ │ └── www_controller.rb
│ │ ├── views
│ │ │ ├── layouts
│ │ │ │ ├── mailer.text.erb
│ │ │ │ └── mailer.html.erb
│ │ │ └── www
│ │ │ │ └── index.html.erb
│ │ ├── helpers
│ │ │ └── application_helper.rb
│ │ ├── channels
│ │ │ └── application_cable
│ │ │ │ ├── channel.rb
│ │ │ │ └── connection.rb
│ │ ├── mailers
│ │ │ └── application_mailer.rb
│ │ ├── javascript
│ │ │ ├── application.js
│ │ │ └── controllers
│ │ │ │ ├── hello_controller.js
│ │ │ │ └── application.js
│ │ └── jobs
│ │ │ └── application_job.rb
│ ├── bin
│ │ ├── rake
│ │ ├── importmap
│ │ ├── rails
│ │ └── docker-entrypoint
│ ├── README.md
│ ├── config
│ │ ├── routes.rb
│ │ ├── environment.rb
│ │ ├── boot.rb
│ │ ├── cable.yml
│ │ └── importmap.rb
│ ├── config.ru
│ ├── Rakefile
│ └── .gitattributes
├── heroku
│ ├── log
│ │ └── .keep
│ ├── tmp
│ │ ├── .keep
│ │ ├── pids
│ │ │ └── .keep
│ │ └── storage
│ │ │ └── .keep
│ ├── lib
│ │ ├── tasks
│ │ │ └── .keep
│ │ └── assets
│ │ │ └── .keep
│ ├── storage
│ │ └── .keep
│ ├── vendor
│ │ ├── .keep
│ │ └── javascript
│ │ │ └── .keep
│ ├── public
│ │ ├── favicon.ico
│ │ ├── apple-touch-icon.png
│ │ ├── apple-touch-icon-precomposed.png
│ │ └── robots.txt
│ ├── test
│ │ ├── helpers
│ │ │ └── .keep
│ │ ├── mailers
│ │ │ └── .keep
│ │ ├── models
│ │ │ └── .keep
│ │ ├── system
│ │ │ └── .keep
│ │ ├── controllers
│ │ │ └── .keep
│ │ ├── fixtures
│ │ │ └── files
│ │ │ │ └── .keep
│ │ ├── integration
│ │ │ └── .keep
│ │ ├── application_system_test_case.rb
│ │ └── channels
│ │ │ └── application_cable
│ │ │ └── connection_test.rb
│ ├── .ruby-version
│ ├── app
│ │ ├── assets
│ │ │ ├── images
│ │ │ │ └── .keep
│ │ │ └── config
│ │ │ │ └── manifest.js
│ │ ├── models
│ │ │ ├── concerns
│ │ │ │ └── .keep
│ │ │ └── application_record.rb
│ │ ├── controllers
│ │ │ ├── concerns
│ │ │ │ └── .keep
│ │ │ ├── application_controller.rb
│ │ │ └── www_controller.rb
│ │ ├── views
│ │ │ ├── layouts
│ │ │ │ ├── mailer.text.erb
│ │ │ │ └── mailer.html.erb
│ │ │ └── www
│ │ │ │ └── index.html.erb
│ │ ├── helpers
│ │ │ └── application_helper.rb
│ │ ├── channels
│ │ │ └── application_cable
│ │ │ │ ├── channel.rb
│ │ │ │ └── connection.rb
│ │ ├── mailers
│ │ │ └── application_mailer.rb
│ │ ├── javascript
│ │ │ ├── application.js
│ │ │ └── controllers
│ │ │ │ ├── hello_controller.js
│ │ │ │ └── application.js
│ │ └── jobs
│ │ │ └── application_job.rb
│ ├── .env
│ ├── bin
│ │ ├── rake
│ │ ├── importmap
│ │ ├── rails
│ │ └── docker-entrypoint
│ ├── README.md
│ ├── config
│ │ ├── environment.rb
│ │ ├── boot.rb
│ │ ├── cable.yml
│ │ └── importmap.rb
│ ├── config.ru
│ ├── Rakefile
│ └── .gitattributes
└── kamal
│ ├── log
│ └── .keep
│ ├── tmp
│ ├── .keep
│ ├── pids
│ │ └── .keep
│ └── storage
│ │ └── .keep
│ ├── lib
│ ├── assets
│ │ └── .keep
│ └── tasks
│ │ └── .keep
│ ├── storage
│ └── .keep
│ ├── vendor
│ ├── .keep
│ └── javascript
│ │ └── .keep
│ ├── public
│ ├── favicon.ico
│ ├── apple-touch-icon.png
│ ├── apple-touch-icon-precomposed.png
│ └── robots.txt
│ ├── test
│ ├── helpers
│ │ └── .keep
│ ├── mailers
│ │ └── .keep
│ ├── models
│ │ └── .keep
│ ├── system
│ │ └── .keep
│ ├── controllers
│ │ └── .keep
│ ├── fixtures
│ │ └── files
│ │ │ └── .keep
│ ├── integration
│ │ └── .keep
│ ├── application_system_test_case.rb
│ └── channels
│ │ └── application_cable
│ │ └── connection_test.rb
│ ├── .ruby-version
│ ├── app
│ ├── assets
│ │ ├── images
│ │ │ └── .keep
│ │ └── config
│ │ │ └── manifest.js
│ ├── models
│ │ ├── concerns
│ │ │ └── .keep
│ │ └── application_record.rb
│ ├── controllers
│ │ ├── concerns
│ │ │ └── .keep
│ │ ├── application_controller.rb
│ │ └── www_controller.rb
│ ├── views
│ │ ├── layouts
│ │ │ ├── mailer.text.erb
│ │ │ └── mailer.html.erb
│ │ └── www
│ │ │ └── index.html.erb
│ ├── helpers
│ │ └── application_helper.rb
│ ├── channels
│ │ └── application_cable
│ │ │ ├── channel.rb
│ │ │ └── connection.rb
│ ├── mailers
│ │ └── application_mailer.rb
│ ├── javascript
│ │ ├── application.js
│ │ └── controllers
│ │ │ ├── hello_controller.js
│ │ │ └── application.js
│ └── jobs
│ │ └── application_job.rb
│ ├── bin
│ ├── rake
│ ├── importmap
│ ├── rails
│ └── docker-entrypoint
│ ├── README.md
│ ├── config
│ ├── routes.rb
│ ├── environment.rb
│ ├── boot.rb
│ ├── cable.yml
│ └── importmap.rb
│ ├── config.ru
│ ├── .env
│ ├── Rakefile
│ ├── .gitattributes
│ └── .kamal
│ └── hooks
│ └── post-deploy.sample
├── usage
├── dotenv-nestjs
│ ├── npm
│ ├── .prettierrc
│ ├── nest-cli.json
│ ├── tsconfig.build.json
│ ├── README.md
│ ├── src
│ │ ├── app.service.ts
│ │ ├── main.ts
│ │ ├── app.controller.ts
│ │ └── app.module.ts
│ └── test
│ │ └── jest-e2e.json
├── dotenv-webpack3
│ ├── .gitignore
│ ├── .env
│ ├── package.json
│ ├── README.md
│ └── dist
│ │ └── bundle.js.LICENSE.txt
├── dotenv-nodejs-json
│ ├── .gitignore
│ ├── index.js
│ ├── package.json
│ └── .env
├── dotenv-#
│ ├── .gitignore
│ ├── index.js
│ ├── README.md
│ ├── package.json
│ └── .env.project
├── dotenv-cypress-typescript
│ ├── .gitignore
│ ├── .env
│ ├── .env.example
│ ├── cypress
│ │ ├── videos
│ │ │ └── spec.cy.ts.mp4
│ │ ├── tsconfig.json
│ │ └── fixtures
│ │ │ └── example.json
│ ├── package.json
│ ├── README.md
│ └── cypress.config.js
├── dotenv-nodejs-backslash
│ ├── .gitignore
│ ├── package.json
│ ├── .env
│ └── index.js
├── dotenv-nodejs-json-escaped
│ ├── .gitignore
│ ├── package.json
│ ├── .env
│ └── index.js
├── dotenv-nodejs-multiline
│ ├── .gitignore
│ ├── index.js
│ ├── package.json
│ └── .env
├── dotenv-supertest
│ ├── .env.test
│ ├── index.js
│ ├── package.json
│ ├── .env.vault
│ ├── app.js
│ ├── test.js
│ └── .env.keys
├── dotenv-codekit
│ ├── build
│ │ └── .gitignore
│ └── source
│ │ └── images
│ │ ├── logo.png
│ │ └── logo@2x.png
├── dotenv-firebase
│ ├── functions
│ │ ├── .gitignore
│ │ └── .eslintrc.js
│ ├── firestore.indexes.json
│ ├── .firebaserc
│ ├── firestore.rules
│ ├── firebase.json
│ └── README.md
├── dotenv-nodejs-inline-comments
│ ├── .gitignore
│ └── package.json
├── dotenv-nodejs-inline-comments-expand
│ ├── .gitignore
│ └── package.json
├── dotenv-esm-preload
│ ├── index.mjs
│ ├── package.json
│ └── README.md
├── dotenv-expand-preload
│ ├── index.js
│ ├── package.json
│ └── README.md
├── dotenv-fastify
│ ├── dotenv-sample
│ ├── routes
│ │ └── index.js
│ └── plugins
│ │ └── env.js
├── dotenv-vault-nextjs
│ ├── .env.example
│ ├── public
│ │ └── favicon.ico
│ └── .env.vault
├── dotenv-nodejs
│ ├── index.js
│ └── package.json
├── dotenv-react-typescript
│ ├── src
│ │ ├── react-app-env.d.ts
│ │ ├── setupTests.ts
│ │ └── App.test.tsx
│ ├── public
│ │ ├── robots.txt
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ └── logo512.png
│ └── README.md
├── dotenv-vault-nextjs-edge
│ ├── .eslintrc.json
│ ├── vercel.json
│ ├── public
│ │ └── favicon.ico
│ ├── next.config.js
│ ├── pages
│ │ ├── _app.js
│ │ └── api
│ │ │ └── location.js
│ └── turbo.json
├── dotenv-yarn
│ ├── package.json
│ ├── index.js
│ ├── README.md
│ └── yarn.lock
├── dotenv-esm-config
│ ├── package.json
│ └── index.mjs
├── dotenv-esm-parse
│ ├── package.json
│ └── index.mjs
├── dotenv-esm
│ ├── package.json
│ ├── index.mjs
│ └── README.md
├── dotenv-multiline
│ ├── package.json
│ ├── index.rb
│ └── index.js
├── dotenv-assignment
│ ├── package.json
│ ├── index.js
│ └── README.md
├── dotenv-config-error
│ ├── package.json
│ └── index.js
├── dotenv-custom-target
│ ├── package.json
│ ├── index.js
│ └── README.md
├── dotenv-nodejs-debug
│ ├── package.json
│ └── index.js
├── dotenv-nodejs-override
│ ├── package.json
│ ├── README.md
│ └── index.js
├── dotenv-config-url-path
│ ├── package.json
│ ├── README.md
│ └── index.js
├── dotenv-es6-import-pitfall
│ ├── package.json
│ ├── valid.mjs
│ ├── errorReporter.mjs
│ ├── README.md
│ └── invalid.mjs
├── dotenv-react
│ ├── public
│ │ ├── robots.txt
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ └── logo512.png
│ ├── README.md
│ └── src
│ │ ├── setupTests.js
│ │ └── App.test.js
├── dotenv-vault-custom-target
│ ├── package.json
│ ├── .env.vault
│ ├── .env.keys
│ └── README.md
├── dotenv-vault-yarn
│ ├── index.js
│ └── package.json
├── dotenv-typescript
│ ├── index.ts
│ ├── dist
│ │ ├── index.js.map
│ │ └── index.js
│ ├── package.json
│ └── README.md
├── dotenv-vault-yarn-typescript
│ ├── index.ts
│ ├── package.json
│ └── README.md
├── dotenv-typescript-config
│ ├── index.ts
│ ├── dist
│ │ ├── index.js.map
│ │ └── index.js
│ ├── package.json
│ └── README.md
├── dotenv-command-substitution
│ ├── package.json
│ └── index.js
├── dotenv-webpack2
│ ├── dist
│ │ ├── main.js
│ │ └── index.html
│ ├── README.md
│ └── src
│ │ └── index.js
├── dotenv-typescript-custom-target
│ ├── package.json
│ ├── index.ts
│ └── README.md
├── dotenv-vault-typescript-custom-target
│ ├── package.json
│ ├── .env.vault
│ └── .env.keys
├── dotenv-express
│ ├── README.md
│ └── index.mjs
├── dotenv-typescript-parse
│ ├── index.ts
│ ├── package.json
│ └── README.md
└── dotenv-webpack
│ ├── README.md
│ ├── dist
│ ├── index.html
│ └── main.js.LICENSE.txt
│ ├── src
│ └── index.js
│ └── webpack.config.js
├── laravel
├── heroku
│ ├── public
│ │ ├── favicon.ico
│ │ └── robots.txt
│ ├── resources
│ │ ├── css
│ │ │ └── app.css
│ │ ├── js
│ │ │ └── app.js
│ │ └── views
│ │ │ └── welcome.blade.php
│ ├── database
│ │ └── .gitignore
│ ├── bootstrap
│ │ └── cache
│ │ │ └── .gitignore
│ ├── storage
│ │ ├── logs
│ │ │ └── .gitignore
│ │ ├── app
│ │ │ ├── public
│ │ │ │ └── .gitignore
│ │ │ └── .gitignore
│ │ └── framework
│ │ │ ├── testing
│ │ │ └── .gitignore
│ │ │ ├── views
│ │ │ └── .gitignore
│ │ │ ├── cache
│ │ │ ├── data
│ │ │ │ └── .gitignore
│ │ │ └── .gitignore
│ │ │ ├── sessions
│ │ │ └── .gitignore
│ │ │ └── .gitignore
│ ├── Procfile
│ ├── README.md
│ ├── tests
│ │ ├── TestCase.php
│ │ └── Unit
│ │ │ └── ExampleTest.php
│ ├── .gitattributes
│ ├── package.json
│ ├── vite.config.js
│ ├── .editorconfig
│ ├── app
│ │ └── Http
│ │ │ └── Controllers
│ │ │ └── Controller.php
│ └── .gitignore
├── laravel-forge
│ ├── public
│ │ ├── favicon.ico
│ │ └── robots.txt
│ ├── resources
│ │ ├── css
│ │ │ └── app.css
│ │ ├── js
│ │ │ └── app.js
│ │ └── views
│ │ │ └── welcome.blade.php
│ ├── database
│ │ └── .gitignore
│ ├── storage
│ │ ├── logs
│ │ │ └── .gitignore
│ │ ├── app
│ │ │ ├── public
│ │ │ │ └── .gitignore
│ │ │ └── .gitignore
│ │ └── framework
│ │ │ ├── views
│ │ │ └── .gitignore
│ │ │ ├── cache
│ │ │ ├── data
│ │ │ │ └── .gitignore
│ │ │ └── .gitignore
│ │ │ ├── sessions
│ │ │ └── .gitignore
│ │ │ ├── testing
│ │ │ └── .gitignore
│ │ │ └── .gitignore
│ ├── bootstrap
│ │ └── cache
│ │ │ └── .gitignore
│ ├── README.md
│ ├── tests
│ │ ├── TestCase.php
│ │ └── Unit
│ │ │ └── ExampleTest.php
│ ├── .gitattributes
│ ├── package.json
│ ├── vite.config.js
│ ├── .gitignore
│ ├── .editorconfig
│ └── app
│ │ └── Http
│ │ └── Controllers
│ │ └── Controller.php
└── .gitignore
├── nodejs
├── aws-lambda
│ ├── context.json
│ ├── deploy.env
│ ├── .gitignore
│ ├── package.json
│ ├── event.json
│ ├── README.md
│ └── index.js
├── heroku
│ ├── .env
│ ├── Procfile
│ ├── package.json
│ ├── README.md
│ └── .gitignore
├── fly
│ ├── .env
│ ├── README.md
│ ├── package.json
│ ├── .dockerignore
│ └── .gitignore
├── railway
│ ├── .env
│ ├── package.json
│ ├── README.md
│ └── .gitignore
├── render
│ ├── .env
│ ├── README.md
│ ├── package.json
│ └── .gitignore
├── vercel
│ ├── .env
│ ├── .vercelignore
│ ├── package.json
│ ├── README.md
│ ├── .gitignore
│ └── vercel.json
├── digital-ocean
│ ├── .env
│ ├── package.json
│ ├── README.md
│ └── .gitignore
├── docker
│ ├── build.js
│ ├── .gitignore
│ ├── README.md
│ ├── package.json
│ └── Dockerfile
├── aws-beanstalk
│ ├── build.js
│ ├── package.json
│ └── README.md
├── buddy
│ ├── .gitignore
│ ├── README.md
│ ├── package.json
│ ├── build.js
│ └── buddy.yml
├── bitbucket
│ ├── .gitignore
│ ├── package.json
│ ├── README.md
│ ├── bitbucket-pipelines.yml
│ └── build.js
├── circleci
│ ├── .gitignore
│ ├── package.json
│ ├── README.md
│ ├── build.js
│ └── .circleci
│ │ └── config.yml
├── cloud66
│ ├── .gitignore
│ ├── package.json
│ ├── README.md
│ └── Dockerfile
├── gitlab-ci
│ ├── .gitignore
│ ├── .gitlab-ci.yml
│ ├── package.json
│ ├── README.md
│ └── build.js
├── northflank
│ ├── .gitignore
│ ├── package.json
│ ├── .dockerignore
│ ├── README.md
│ └── Dockerfile
├── travis-ci
│ ├── .gitignore
│ ├── .travis.yml
│ ├── package.json
│ ├── README.md
│ └── build.js
├── github-actions
│ ├── .gitignore
│ ├── package.json
│ ├── README.md
│ └── build.js
├── google-cloud-build
│ ├── .gitignore
│ ├── build.js
│ ├── README.md
│ └── cloudbuild.yml
└── dagger
│ ├── .gitignore
│ ├── package.json
│ └── README.md
├── angular
└── vercel
│ ├── src
│ ├── assets
│ │ └── .gitkeep
│ ├── app
│ │ ├── app.component.css
│ │ ├── app.component.html
│ │ ├── app.component.ts
│ │ └── app.module.ts
│ ├── environments
│ │ ├── environment.ts
│ │ └── environment.development.ts
│ ├── styles.css
│ ├── favicon.ico
│ ├── main.ts
│ └── index.html
│ ├── .vercelignore
│ ├── README.md
│ ├── .vscode
│ └── extensions.json
│ ├── tsconfig.app.json
│ ├── tsconfig.spec.json
│ └── .editorconfig
├── dotenv-blog
├── 2023-11-07
│ ├── .env
│ ├── .gitignore
│ ├── composer.json
│ └── REAMDE.md
├── 2023-10-24
│ ├── .env
│ ├── .env.production
│ ├── package.json
│ ├── index.js
│ ├── README.md
│ └── .gitignore
└── 2023-10-28
│ ├── index.js
│ ├── package.json
│ ├── README.md
│ └── secret.js
├── flask
└── heroku
│ ├── runtime.txt
│ ├── .env
│ ├── Procfile
│ ├── README.md
│ ├── wsgi.py
│ ├── .gitignore
│ └── index.py
├── php
└── heroku
│ ├── Procfile
│ ├── .env
│ ├── composer.json
│ ├── README.md
│ ├── .gitignore
│ └── index.php
├── pm2
└── heroku
│ ├── .env
│ ├── ecosystem.config.js
│ ├── README.md
│ ├── .gitignore
│ └── package.json
├── express
├── heroku
│ ├── Procfile
│ ├── .gitignore
│ ├── package.json
│ └── README.md
├── fly
│ ├── .gitignore
│ ├── README.md
│ ├── .dockerignore
│ └── package.json
├── vercel
│ ├── .gitignore
│ ├── .vercelignore
│ ├── package.json
│ ├── README.md
│ └── vercel.json
└── docker-compose
│ ├── .gitignore
│ ├── .dockerignore
│ ├── package.json
│ ├── Dockerfile
│ ├── README.md
│ └── docker-compose.yml
├── fastapi
└── heroku
│ ├── .env
│ ├── runtime.txt
│ ├── Procfile
│ ├── main.py
│ └── .gitignore
├── nestjs
└── heroku
│ ├── Procfile
│ ├── .env
│ ├── .prettierrc
│ ├── tsconfig.build.json
│ ├── README.md
│ ├── src
│ ├── app.service.ts
│ ├── main.ts
│ └── app.controller.ts
│ ├── nest-cli.json
│ └── test
│ └── jest-e2e.json
├── quickstart
├── laravel-hello-world
│ ├── public
│ │ ├── favicon.ico
│ │ └── robots.txt
│ ├── resources
│ │ ├── css
│ │ │ └── app.css
│ │ ├── js
│ │ │ └── app.js
│ │ └── views
│ │ │ └── welcome.blade.php
│ ├── database
│ │ └── .gitignore
│ ├── storage
│ │ ├── logs
│ │ │ └── .gitignore
│ │ ├── app
│ │ │ ├── public
│ │ │ │ └── .gitignore
│ │ │ └── .gitignore
│ │ └── framework
│ │ │ ├── views
│ │ │ └── .gitignore
│ │ │ ├── cache
│ │ │ ├── data
│ │ │ │ └── .gitignore
│ │ │ └── .gitignore
│ │ │ ├── sessions
│ │ │ └── .gitignore
│ │ │ ├── testing
│ │ │ └── .gitignore
│ │ │ └── .gitignore
│ ├── bootstrap
│ │ └── cache
│ │ │ └── .gitignore
│ ├── tests
│ │ ├── TestCase.php
│ │ └── Unit
│ │ │ └── ExampleTest.php
│ ├── .gitattributes
│ ├── package.json
│ ├── vite.config.js
│ ├── .editorconfig
│ └── app
│ │ └── Http
│ │ └── Controllers
│ │ └── Controller.php
├── rust-hello-world
│ ├── .env
│ ├── .gitignore
│ ├── src
│ │ └── main.rs
│ └── Cargo.toml
├── echo-hello-world
│ ├── .env
│ └── .gitignore
├── flask-hello-world
│ ├── .env
│ ├── README.md
│ ├── .gitignore
│ └── index.py
├── express-hello-world
│ ├── .env
│ ├── README.md
│ ├── .gitignore
│ ├── index.js
│ └── package.json
├── sinatra-hello-world
│ ├── .env
│ ├── README.md
│ ├── index.rb
│ ├── .gitignore
│ └── Gemfile
├── nodejs-hello-world
│ ├── .gitignore
│ ├── package.json
│ └── README.md
└── php-hello-world
│ ├── .gitignore
│ ├── composer.json
│ └── index.php
├── rocket-rs
└── heroku
│ ├── .env
│ ├── rust-toolchain
│ ├── Procfile
│ ├── README.md
│ ├── .gitignore
│ └── Cargo.toml
├── sinatra
└── heroku
│ ├── .env
│ ├── config.ru
│ ├── Procfile
│ ├── index.rb
│ ├── Gemfile
│ ├── README.md
│ └── .gitignore
├── turborepo
└── vercel
│ ├── .npmrc
│ ├── apps
│ ├── web
│ │ ├── .eslintrc.js
│ │ ├── next.config.js
│ │ ├── app
│ │ │ ├── page.tsx
│ │ │ └── layout.tsx
│ │ ├── next-env.d.ts
│ │ └── tsconfig.json
│ └── docs
│ │ ├── .eslintrc.js
│ │ ├── next.config.js
│ │ ├── app
│ │ ├── page.tsx
│ │ └── layout.tsx
│ │ ├── next-env.d.ts
│ │ └── tsconfig.json
│ ├── packages
│ ├── ui
│ │ ├── index.tsx
│ │ ├── Header.tsx
│ │ ├── tsconfig.json
│ │ ├── Button.tsx
│ │ └── turbo
│ │ │ └── generators
│ │ │ └── templates
│ │ │ └── component.hbs
│ ├── tsconfig
│ │ ├── package.json
│ │ └── react-library.json
│ └── eslint-config-custom
│ │ └── index.js
│ ├── README.md
│ └── .eslintrc.js
├── gatsby
└── gatsby-edge
│ ├── .env
│ ├── src
│ ├── images
│ │ └── icon.png
│ └── pages
│ │ └── index.js
│ ├── README.md
│ ├── .gitignore
│ └── gatsby-config.js
├── nextjs
├── netlify
│ ├── .env
│ ├── pages
│ │ ├── about.tsx
│ │ ├── day
│ │ │ └── index.tsx
│ │ └── index.tsx
│ └── README.md
├── vercel
│ ├── .vercelignore
│ ├── pages
│ │ ├── about.tsx
│ │ ├── day
│ │ │ └── index.tsx
│ │ └── index.tsx
│ └── README.md
└── github-actions
│ ├── pages
│ ├── about.tsx
│ ├── day
│ │ └── index.tsx
│ └── index.tsx
│ └── README.md
├── astro
└── netlify
│ ├── src
│ └── env.d.ts
│ ├── tsconfig.json
│ ├── netlify.toml
│ ├── .vscode
│ ├── extensions.json
│ └── launch.json
│ ├── README.md
│ ├── astro.config.mjs
│ └── .gitignore
├── vite
└── vercel
│ ├── src
│ ├── vite-env.d.ts
│ ├── main.ts
│ └── counter.ts
│ ├── .vercelignore
│ └── README.md
├── svelte-kit
└── vercel
│ ├── .npmrc
│ ├── .vercelignore
│ ├── src
│ ├── routes
│ │ └── +page.svelte
│ ├── lib
│ │ └── index.js
│ └── app.html
│ ├── static
│ └── favicon.png
│ ├── README.md
│ ├── vite.config.js
│ └── .gitignore
├── nuxtjs
├── edgio
│ ├── .npmrc
│ ├── server
│ │ └── tsconfig.json
│ ├── public
│ │ └── favicon.ico
│ ├── tsconfig.json
│ ├── README.md
│ ├── routes.ts
│ ├── app.vue
│ ├── plugins
│ │ ├── edgio-devtools.client.ts
│ │ └── edgio-service-worker.client.ts
│ ├── nuxt.config.ts
│ └── sw
│ │ └── service-worker.js
└── vercel
│ ├── server
│ └── tsconfig.json
│ ├── public
│ └── favicon.ico
│ ├── tsconfig.json
│ ├── README.md
│ ├── app.vue
│ └── nuxt.config.ts
├── ruby
└── circleci
│ ├── .gitignore
│ ├── build.rb
│ ├── Gemfile
│ ├── README.md
│ ├── Gemfile.lock
│ └── .circleci
│ └── config.yml
├── dotenv-examples.png
├── github-actions
├── .gitignore
├── public
│ └── favicon.ico
├── remix.env.d.ts
└── .eslintrc.js
├── serverless
└── aws-lambda
│ ├── package.json
│ ├── README.md
│ ├── .gitignore
│ └── serverless.yml
├── remix
├── vercel
│ ├── public
│ │ └── favicon.ico
│ ├── remix.env.d.ts
│ ├── README.md
│ ├── .gitignore
│ └── .eslintrc.js
└── github-actions
│ ├── remix.env.d.ts
│ ├── public
│ └── favicon.ico
│ ├── .gitignore
│ ├── README.md
│ └── .eslintrc.js
└── .gitignore
/rails/fly/log/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/storage/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/tmp/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/vendor/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/log/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/tmp/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/log/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/tmp/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/usage/dotenv-nestjs/npm:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/lib/assets/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/lib/tasks/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/test/helpers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/test/mailers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/test/models/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/test/system/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/tmp/pids/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/tmp/storage/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/lib/tasks/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/storage/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/tmp/pids/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/vendor/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/lib/assets/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/lib/tasks/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/storage/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/tmp/pids/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/vendor/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/laravel/heroku/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/nodejs/aws-lambda/context.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/rails/fly/.ruby-version:
--------------------------------------------------------------------------------
1 | 3.1.3
2 |
--------------------------------------------------------------------------------
/rails/fly/app/assets/images/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/test/controllers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/test/integration/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/vendor/javascript/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/lib/assets/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/test/helpers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/test/mailers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/test/models/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/test/system/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/tmp/storage/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/test/helpers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/test/mailers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/test/models/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/test/system/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/tmp/storage/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/angular/vercel/src/assets/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/laravel/heroku/resources/css/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/nodejs/heroku/.env:
--------------------------------------------------------------------------------
1 | HELLO="World"
2 |
--------------------------------------------------------------------------------
/rails/fly/app/models/concerns/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/public/apple-touch-icon.png:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/test/fixtures/files/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/.ruby-version:
--------------------------------------------------------------------------------
1 | 3.1.3
2 |
--------------------------------------------------------------------------------
/rails/heroku/app/assets/images/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/app/models/concerns/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/test/controllers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/test/fixtures/files/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/test/integration/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/vendor/javascript/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/.ruby-version:
--------------------------------------------------------------------------------
1 | 3.1.3
2 |
--------------------------------------------------------------------------------
/rails/kamal/app/assets/images/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/app/models/concerns/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/test/controllers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/test/fixtures/files/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/test/integration/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/vendor/javascript/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/angular/vercel/src/app/app.component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/resources/css/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/app/controllers/concerns/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/app/controllers/concerns/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/public/apple-touch-icon.png:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/app/controllers/concerns/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/public/apple-touch-icon.png:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack3/.gitignore:
--------------------------------------------------------------------------------
1 | !.env*
2 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-11-07/.env:
--------------------------------------------------------------------------------
1 | HELLO="File"
2 |
--------------------------------------------------------------------------------
/flask/heroku/runtime.txt:
--------------------------------------------------------------------------------
1 | python-3.9.13
2 |
3 |
--------------------------------------------------------------------------------
/laravel/heroku/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite*
2 |
--------------------------------------------------------------------------------
/nodejs/fly/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
--------------------------------------------------------------------------------
/nodejs/heroku/Procfile:
--------------------------------------------------------------------------------
1 | web: node index.js
2 |
--------------------------------------------------------------------------------
/nodejs/railway/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
--------------------------------------------------------------------------------
/nodejs/render/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
--------------------------------------------------------------------------------
/nodejs/vercel/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
--------------------------------------------------------------------------------
/php/heroku/Procfile:
--------------------------------------------------------------------------------
1 | web: heroku-php-apache2
2 |
--------------------------------------------------------------------------------
/pm2/heroku/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
--------------------------------------------------------------------------------
/rails/heroku/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-json/.gitignore:
--------------------------------------------------------------------------------
1 | !.env
2 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack3/.env:
--------------------------------------------------------------------------------
1 | HELLO="World"
2 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-10-24/.env:
--------------------------------------------------------------------------------
1 | HELLO="development"
2 |
--------------------------------------------------------------------------------
/express/heroku/Procfile:
--------------------------------------------------------------------------------
1 | web: node index.js
2 |
3 |
--------------------------------------------------------------------------------
/fastapi/heroku/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
4 |
--------------------------------------------------------------------------------
/fastapi/heroku/runtime.txt:
--------------------------------------------------------------------------------
1 | python-3.9.13
2 |
3 |
--------------------------------------------------------------------------------
/flask/heroku/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
4 |
--------------------------------------------------------------------------------
/nestjs/heroku/Procfile:
--------------------------------------------------------------------------------
1 | web: npm run start:prod
2 |
--------------------------------------------------------------------------------
/php/heroku/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
4 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/resources/css/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/fly/public/apple-touch-icon-precomposed.png:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/heroku/public/apple-touch-icon-precomposed.png:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rails/kamal/public/apple-touch-icon-precomposed.png:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rocket-rs/heroku/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
--------------------------------------------------------------------------------
/sinatra/heroku/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
4 |
--------------------------------------------------------------------------------
/turborepo/vercel/.npmrc:
--------------------------------------------------------------------------------
1 | auto-install-peers = true
2 |
--------------------------------------------------------------------------------
/usage/dotenv-#/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | !.env.project
--------------------------------------------------------------------------------
/usage/dotenv-cypress-typescript/.gitignore:
--------------------------------------------------------------------------------
1 | !.env*
2 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-backslash/.gitignore:
--------------------------------------------------------------------------------
1 | !.env
2 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-json-escaped/.gitignore:
--------------------------------------------------------------------------------
1 | !.env
2 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-multiline/.gitignore:
--------------------------------------------------------------------------------
1 | !.env
2 |
--------------------------------------------------------------------------------
/usage/dotenv-supertest/.env.test:
--------------------------------------------------------------------------------
1 | HELLO="Test"
2 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite*
2 |
--------------------------------------------------------------------------------
/nodejs/digital-ocean/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
--------------------------------------------------------------------------------
/rocket-rs/heroku/rust-toolchain:
--------------------------------------------------------------------------------
1 | nightly-2023-11-15
2 |
--------------------------------------------------------------------------------
/usage/dotenv-codekit/build/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
--------------------------------------------------------------------------------
/usage/dotenv-cypress-typescript/.env:
--------------------------------------------------------------------------------
1 | HELLO="World"
2 |
--------------------------------------------------------------------------------
/usage/dotenv-firebase/functions/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-inline-comments/.gitignore:
--------------------------------------------------------------------------------
1 | !.env
2 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-10-24/.env.production:
--------------------------------------------------------------------------------
1 | HELLO="production"
2 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-11-07/.gitignore:
--------------------------------------------------------------------------------
1 | vendor/**/*
2 | !.env
3 |
--------------------------------------------------------------------------------
/gatsby/gatsby-edge/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | GATSBY_HELLO="World"
3 |
--------------------------------------------------------------------------------
/laravel/heroku/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laravel/heroku/resources/js/app.js:
--------------------------------------------------------------------------------
1 | import './bootstrap';
2 |
--------------------------------------------------------------------------------
/laravel/heroku/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/nestjs/heroku/.env:
--------------------------------------------------------------------------------
1 | # development@v2
2 | # .env
3 | HELLO="World"
--------------------------------------------------------------------------------
/nextjs/netlify/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | NEXT_PUBLIC_HELLO="World"
3 |
--------------------------------------------------------------------------------
/nodejs/aws-lambda/deploy.env:
--------------------------------------------------------------------------------
1 | SECRET_VARIABLE=mysecretval
2 |
--------------------------------------------------------------------------------
/quickstart/rust-hello-world/.env:
--------------------------------------------------------------------------------
1 | # .env
2 | HELLO="World"
3 |
--------------------------------------------------------------------------------
/rails/fly/app/views/layouts/mailer.text.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
2 |
--------------------------------------------------------------------------------
/rails/heroku/app/views/layouts/mailer.text.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
2 |
--------------------------------------------------------------------------------
/rails/kamal/app/views/layouts/mailer.text.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
2 |
--------------------------------------------------------------------------------
/usage/dotenv-cypress-typescript/.env.example:
--------------------------------------------------------------------------------
1 | HELLO="World"
2 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-inline-comments-expand/.gitignore:
--------------------------------------------------------------------------------
1 | !.env
2 |
--------------------------------------------------------------------------------
/laravel/heroku/Procfile:
--------------------------------------------------------------------------------
1 | web: heroku-php-apache2 public/
2 |
3 |
--------------------------------------------------------------------------------
/laravel/heroku/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/laravel/heroku/storage/app/public/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/resources/js/app.js:
--------------------------------------------------------------------------------
1 | import './bootstrap';
2 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/nodejs/docker/build.js:
--------------------------------------------------------------------------------
1 | console.log(`HELLO ${process.env.HELLO}`)
2 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite*
2 |
--------------------------------------------------------------------------------
/usage/dotenv-esm-preload/index.mjs:
--------------------------------------------------------------------------------
1 | console.log(process.env)
2 |
3 |
--------------------------------------------------------------------------------
/usage/dotenv-expand-preload/index.js:
--------------------------------------------------------------------------------
1 | console.log(process.env)
2 |
--------------------------------------------------------------------------------
/angular/vercel/src/app/app.component.html:
--------------------------------------------------------------------------------
1 | Hello {{ NG_APP_HELLO }}.
2 |
--------------------------------------------------------------------------------
/astro/netlify/src/env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/laravel/heroku/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !public/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/laravel/heroku/storage/framework/testing/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laravel/heroku/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/storage/app/public/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/rails/heroku/app/views/www/index.html.erb:
--------------------------------------------------------------------------------
1 | Hello <%= ENV["HELLO"] %>.
2 |
--------------------------------------------------------------------------------
/rails/kamal/app/views/www/index.html.erb:
--------------------------------------------------------------------------------
1 | Hello <%= ENV["HELLO"] %>.
2 |
--------------------------------------------------------------------------------
/usage/dotenv-fastify/dotenv-sample:
--------------------------------------------------------------------------------
1 | HTTP_PORT=3000
2 | DEBUG_LEVEL=31337
--------------------------------------------------------------------------------
/usage/dotenv-vault-nextjs/.env.example:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_HELLO="Universe"
2 |
--------------------------------------------------------------------------------
/vite/vercel/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/astro/netlify/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "astro/tsconfigs/strict"
3 | }
--------------------------------------------------------------------------------
/laravel/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/laravel/heroku/storage/framework/cache/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laravel/heroku/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/quickstart/echo-hello-world/.env:
--------------------------------------------------------------------------------
1 | # development@v2
2 | # .env
3 | HELLO="World"
--------------------------------------------------------------------------------
/quickstart/flask-hello-world/.env:
--------------------------------------------------------------------------------
1 | # development@v2
2 | # .env
3 | HELLO="World"
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/resources/js/app.js:
--------------------------------------------------------------------------------
1 | import './bootstrap';
2 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/rails/fly/app/views/www/index.html.erb:
--------------------------------------------------------------------------------
1 | Hello <%= ENV["HELLO"] %>.
2 |
3 |
--------------------------------------------------------------------------------
/svelte-kit/vercel/.npmrc:
--------------------------------------------------------------------------------
1 | engine-strict=true
2 | resolution-mode=highest
3 |
--------------------------------------------------------------------------------
/angular/vercel/src/environments/environment.ts:
--------------------------------------------------------------------------------
1 | export const environment = {};
2 |
--------------------------------------------------------------------------------
/express/fly/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/laravel/heroku/resources/views/welcome.blade.php:
--------------------------------------------------------------------------------
1 | Hello {{ env('HELLO') }}.
2 |
3 |
--------------------------------------------------------------------------------
/laravel/heroku/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !data/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !public/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/storage/framework/cache/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/storage/framework/testing/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/nodejs/aws-beanstalk/build.js:
--------------------------------------------------------------------------------
1 | console.log(`Hello ${process.env.HELLO}`)
2 |
3 |
--------------------------------------------------------------------------------
/nodejs/buddy/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/nodejs/docker/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/nuxtjs/edgio/.npmrc:
--------------------------------------------------------------------------------
1 | shamefully-hoist=true
2 | strict-peer-dependencies=false
3 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/storage/app/public/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/rails/fly/app/helpers/application_helper.rb:
--------------------------------------------------------------------------------
1 | module ApplicationHelper
2 | end
3 |
--------------------------------------------------------------------------------
/rails/heroku/app/helpers/application_helper.rb:
--------------------------------------------------------------------------------
1 | module ApplicationHelper
2 | end
3 |
--------------------------------------------------------------------------------
/rails/kamal/app/helpers/application_helper.rb:
--------------------------------------------------------------------------------
1 | module ApplicationHelper
2 | end
3 |
--------------------------------------------------------------------------------
/ruby/circleci/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/sinatra/heroku/config.ru:
--------------------------------------------------------------------------------
1 | require "./index"
2 | run Sinatra::Application
3 |
4 |
--------------------------------------------------------------------------------
/express/heroku/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/express/vercel/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/express/vercel/.vercelignore:
--------------------------------------------------------------------------------
1 | .env*
2 | .flaskenv*
3 | !.env.project
4 | !.env.vault
5 |
--------------------------------------------------------------------------------
/flask/heroku/Procfile:
--------------------------------------------------------------------------------
1 | web: gunicorn --workers 4 --bind 0.0.0.0:${PORT} wsgi:app
2 |
3 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/resources/views/welcome.blade.php:
--------------------------------------------------------------------------------
1 | Hello {{ env('HELLO') }}.
2 |
--------------------------------------------------------------------------------
/nestjs/heroku/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true,
3 | "trailingComma": "all"
4 | }
--------------------------------------------------------------------------------
/nextjs/vercel/.vercelignore:
--------------------------------------------------------------------------------
1 | .env*
2 | !.env.vault
3 |
4 | .flaskenv*
5 | !.env.project
--------------------------------------------------------------------------------
/nodejs/aws-lambda/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/nodejs/bitbucket/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/nodejs/circleci/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/nodejs/cloud66/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/nodejs/gitlab-ci/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/nodejs/northflank/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/nodejs/travis-ci/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/nodejs/vercel/.vercelignore:
--------------------------------------------------------------------------------
1 | .env*
2 | .flaskenv*
3 | !.env.project
4 | !.env.vault
5 |
--------------------------------------------------------------------------------
/quickstart/express-hello-world/.env:
--------------------------------------------------------------------------------
1 | # development@v2
2 | # .env
3 | HELLO="World"
4 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !public/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/quickstart/sinatra-hello-world/.env:
--------------------------------------------------------------------------------
1 | # development@v2
2 | # .env
3 | HELLO="World"
4 |
--------------------------------------------------------------------------------
/sinatra/heroku/Procfile:
--------------------------------------------------------------------------------
1 | web: APP_ENV=production bundle exec rackup -p "$PORT"
2 |
3 |
--------------------------------------------------------------------------------
/usage/dotenv-#/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config()
2 |
3 | console.log(process.env)
4 |
--------------------------------------------------------------------------------
/angular/vercel/.vercelignore:
--------------------------------------------------------------------------------
1 | .env*
2 | .flaskenv*
3 | !.env.project
4 | !.env.vault
5 |
6 |
--------------------------------------------------------------------------------
/angular/vercel/src/environments/environment.development.ts:
--------------------------------------------------------------------------------
1 | export const environment = {};
2 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-10-28/index.js:
--------------------------------------------------------------------------------
1 | // index.js
2 | console.log(`Hello ${process.env.HELLO}`)
3 |
--------------------------------------------------------------------------------
/dotenv-examples.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/dotenv-examples.png
--------------------------------------------------------------------------------
/express/docker-compose/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/laravel/laravel-forge/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !data/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/nodejs/github-actions/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/storage/framework/cache/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/storage/framework/testing/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/svelte-kit/vercel/.vercelignore:
--------------------------------------------------------------------------------
1 | .env*
2 | .flaskenv*
3 | !.env.vault
4 |
5 | !.env.project
--------------------------------------------------------------------------------
/svelte-kit/vercel/src/routes/+page.svelte:
--------------------------------------------------------------------------------
1 |
Hello {import.meta.env.VITE_HELLO}.
2 |
--------------------------------------------------------------------------------
/usage/dotenv-#/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-#
2 |
3 | An example of using dotenv with #.
4 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config()
2 |
3 | console.log(process.env)
4 |
--------------------------------------------------------------------------------
/vite/vercel/.vercelignore:
--------------------------------------------------------------------------------
1 | .env*
2 | .flaskenv*
3 | !.env.project
4 | !.env.vault
5 |
6 |
--------------------------------------------------------------------------------
/astro/netlify/netlify.toml:
--------------------------------------------------------------------------------
1 | [build]
2 | command = "npm run build"
3 | publish = "dist"
4 |
5 |
--------------------------------------------------------------------------------
/github-actions/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
3 | /.cache
4 | /build
5 | /public/build
6 | .env
7 |
--------------------------------------------------------------------------------
/nodejs/google-cloud-build/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/nodejs/google-cloud-build/build.js:
--------------------------------------------------------------------------------
1 | // build.js
2 | console.log(`Hello ${process.env.HELLO}`)
3 |
--------------------------------------------------------------------------------
/nodejs/heroku/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/nodejs/vercel/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/nuxtjs/edgio/server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../.nuxt/tsconfig.server.json"
3 | }
4 |
--------------------------------------------------------------------------------
/nuxtjs/vercel/server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../.nuxt/tsconfig.server.json"
3 | }
4 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !data/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/rocket-rs/heroku/Procfile:
--------------------------------------------------------------------------------
1 | web: ROCKET_PORT=$PORT ROCKET_KEEP_ALIVE=0 ./target/release/yourapp
2 |
--------------------------------------------------------------------------------
/usage/dotenv-nestjs/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true,
3 | "trailingComma": "all"
4 | }
--------------------------------------------------------------------------------
/usage/dotenv-react-typescript/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-nextjs-edge/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "next/core-web-vitals"
3 | }
4 |
--------------------------------------------------------------------------------
/fastapi/heroku/Procfile:
--------------------------------------------------------------------------------
1 | web: gunicorn --workers 4 -k uvicorn.workers.UvicornWorker main:app
2 |
3 |
--------------------------------------------------------------------------------
/nodejs/aws-lambda/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/nodejs/cloud66/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/nodejs/dagger/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
--------------------------------------------------------------------------------
/nodejs/northflank/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/nodejs/railway/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/quickstart/nodejs-hello-world/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
--------------------------------------------------------------------------------
/usage/dotenv-#/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^14.3.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-json/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config()
2 |
3 | console.log(process.env.JSON)
4 |
--------------------------------------------------------------------------------
/usage/dotenv-yarn/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.1.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-10-24/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/express/docker-compose/.dockerignore:
--------------------------------------------------------------------------------
1 | .git
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
--------------------------------------------------------------------------------
/nodejs/aws-beanstalk/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "build": "node build.js"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/nodejs/digital-ocean/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/nodejs/northflank/.dockerignore:
--------------------------------------------------------------------------------
1 | .git
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 |
--------------------------------------------------------------------------------
/serverless/aws-lambda/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-esm-config/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^14.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-esm-parse/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^14.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-esm/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "devDependencies": {
3 | "dotenv": "^14.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-firebase/firestore.indexes.json:
--------------------------------------------------------------------------------
1 | {
2 | "indexes": [],
3 | "fieldOverrides": []
4 | }
5 |
--------------------------------------------------------------------------------
/usage/dotenv-multiline/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^15.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-yarn/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config()
2 |
3 | console.log(`Hello ${process.env.HELLO}`)
4 |
--------------------------------------------------------------------------------
/angular/vercel/src/styles.css:
--------------------------------------------------------------------------------
1 | /* You can add global styles to this file, and also import other style files */
2 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-10-24/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config()
2 |
3 | console.log(`Hello ${process.env.HELLO}`)
4 |
--------------------------------------------------------------------------------
/nextjs/netlify/pages/about.tsx:
--------------------------------------------------------------------------------
1 | export default function AboutPage() {
2 | return About us
3 | }
4 |
--------------------------------------------------------------------------------
/nextjs/vercel/pages/about.tsx:
--------------------------------------------------------------------------------
1 | export default function AboutPage() {
2 | return About us
3 | }
4 |
--------------------------------------------------------------------------------
/nextjs/vercel/pages/day/index.tsx:
--------------------------------------------------------------------------------
1 | export default function DayPage() {
2 | return Hello Day
3 | }
4 |
--------------------------------------------------------------------------------
/svelte-kit/vercel/src/lib/index.js:
--------------------------------------------------------------------------------
1 | // place files you want to import through the `$lib` alias in this folder.
2 |
--------------------------------------------------------------------------------
/turborepo/vercel/apps/web/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | extends: ["custom"],
4 | };
5 |
--------------------------------------------------------------------------------
/usage/dotenv-assignment/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.1.0-rc1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-config-error/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "14.0.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-custom-target/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.2.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-esm-config/index.mjs:
--------------------------------------------------------------------------------
1 | import * as dotenv from "dotenv"
2 |
3 | console.log(dotenv.config())
4 |
5 |
--------------------------------------------------------------------------------
/usage/dotenv-esm-preload/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "devDependencies": {
3 | "dotenv": "^14.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-firebase/.firebaserc:
--------------------------------------------------------------------------------
1 | {
2 | "projects": {
3 | "default": "dotenv-firebase"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-nestjs/nest-cli.json:
--------------------------------------------------------------------------------
1 | {
2 | "collection": "@nestjs/schematics",
3 | "sourceRoot": "src"
4 | }
5 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-debug/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "devDependencies": {
3 | "dotenv": "^13.0.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-json/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.4.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-override/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "14.1.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/angular/vercel/src/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/angular/vercel/src/favicon.ico
--------------------------------------------------------------------------------
/dotenv-blog/2023-11-07/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "require": {
3 | "vlucas/phpdotenv": "^5.5"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/nextjs/github-actions/pages/about.tsx:
--------------------------------------------------------------------------------
1 | export default function AboutPage() {
2 | return About us
3 | }
4 |
--------------------------------------------------------------------------------
/nextjs/netlify/pages/day/index.tsx:
--------------------------------------------------------------------------------
1 | export default function DayPage() {
2 | return Hello Day
3 | }
4 |
--------------------------------------------------------------------------------
/nuxtjs/edgio/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/nuxtjs/edgio/public/favicon.ico
--------------------------------------------------------------------------------
/php/heroku/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "require": {
3 | "dotenv-org/phpdotenv-vault": "^0.2.4"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/quickstart/nodejs-hello-world/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/quickstart/php-hello-world/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | vendor/
8 |
--------------------------------------------------------------------------------
/rails/fly/app/controllers/application_controller.rb:
--------------------------------------------------------------------------------
1 | class ApplicationController < ActionController::Base
2 | end
3 |
--------------------------------------------------------------------------------
/rails/kamal/app/controllers/application_controller.rb:
--------------------------------------------------------------------------------
1 | class ApplicationController < ActionController::Base
2 | end
3 |
--------------------------------------------------------------------------------
/remix/vercel/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/remix/vercel/public/favicon.ico
--------------------------------------------------------------------------------
/remix/vercel/remix.env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/turborepo/vercel/apps/docs/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | extends: ["custom"],
4 | };
5 |
--------------------------------------------------------------------------------
/usage/dotenv-#/.env.project:
--------------------------------------------------------------------------------
1 | DOTENV_PROJECT=prj_192a5606e5e01d34c33a1131fb7718bbf70206b2d57d10ae0a464fa0238e2b8c
2 |
--------------------------------------------------------------------------------
/usage/dotenv-config-url-path/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.1.0-rc1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-es6-import-pitfall/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^14.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-esm/index.mjs:
--------------------------------------------------------------------------------
1 | import dotenv from 'dotenv'
2 |
3 | dotenv.config()
4 |
5 | console.log(process.env)
6 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-backslash/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.4.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-json-escaped/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.4.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-multiline/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config()
2 |
3 | console.log(process.env.PRIVATE_KEY)
4 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-multiline/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.4.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-react/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-custom-target/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-yarn/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config()
2 |
3 | console.log(`Hello ${process.env.HELLO}`)
4 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-yarn/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv-vault": "^1.23.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/github-actions/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/github-actions/public/favicon.ico
--------------------------------------------------------------------------------
/github-actions/remix.env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/nextjs/github-actions/pages/day/index.tsx:
--------------------------------------------------------------------------------
1 | export default function DayPage() {
2 | return Hello Day
3 | }
4 |
--------------------------------------------------------------------------------
/nodejs/aws-lambda/event.json:
--------------------------------------------------------------------------------
1 | {
2 | "key": "value",
3 | "key2": "value2",
4 | "other_key": "other_value"
5 | }
6 |
--------------------------------------------------------------------------------
/nuxtjs/vercel/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/nuxtjs/vercel/public/favicon.ico
--------------------------------------------------------------------------------
/rails/heroku/app/controllers/application_controller.rb:
--------------------------------------------------------------------------------
1 | class ApplicationController < ActionController::Base
2 | end
3 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-inline-comments/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.4.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript/index.ts:
--------------------------------------------------------------------------------
1 | import dotenv from "dotenv"
2 |
3 | dotenv.config()
4 |
5 | console.log(process.env)
6 |
--------------------------------------------------------------------------------
/nodejs/travis-ci/.travis.yml:
--------------------------------------------------------------------------------
1 | # .travis.yml
2 | language: node_js
3 | node_js:
4 | - 16
5 | install:
6 | - npm install
7 |
--------------------------------------------------------------------------------
/rails/fly/app/models/application_record.rb:
--------------------------------------------------------------------------------
1 | class ApplicationRecord < ActiveRecord::Base
2 | primary_abstract_class
3 | end
4 |
--------------------------------------------------------------------------------
/rails/fly/bin/rake:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require_relative "../config/boot"
3 | require "rake"
4 | Rake.application.run
5 |
--------------------------------------------------------------------------------
/rails/heroku/app/controllers/www_controller.rb:
--------------------------------------------------------------------------------
1 | class WwwController < ApplicationController
2 | def index
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/rails/heroku/bin/rake:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require_relative "../config/boot"
3 | require "rake"
4 | Rake.application.run
5 |
--------------------------------------------------------------------------------
/rails/kamal/app/controllers/www_controller.rb:
--------------------------------------------------------------------------------
1 | class WwwController < ApplicationController
2 | def index
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/rails/kamal/bin/rake:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require_relative "../config/boot"
3 | require "rake"
4 | Rake.application.run
5 |
--------------------------------------------------------------------------------
/remix/github-actions/remix.env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/svelte-kit/vercel/static/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/svelte-kit/vercel/static/favicon.png
--------------------------------------------------------------------------------
/usage/dotenv-nodejs/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "dependencies": {
4 | "dotenv": "^12.0.0"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/usage/dotenv-react-typescript/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/express/heroku/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1",
4 | "express": "^4.18.2"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/express/vercel/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1",
4 | "express": "^4.18.2"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/gatsby/gatsby-edge/src/images/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/gatsby/gatsby-edge/src/images/icon.png
--------------------------------------------------------------------------------
/pm2/heroku/ecosystem.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | apps : [{
3 | script: 'index.js',
4 | watch: '.'
5 | }]
6 | };
7 |
--------------------------------------------------------------------------------
/quickstart/express-hello-world/README.md:
--------------------------------------------------------------------------------
1 | # quickstart/hello-world
2 |
3 | See [quickstart](https://dotenv.org/docs/quickstart)
4 |
--------------------------------------------------------------------------------
/quickstart/flask-hello-world/README.md:
--------------------------------------------------------------------------------
1 | # quickstart/hello-world
2 |
3 | See [quickstart](https://dotenv.org/docs/quickstart)
4 |
--------------------------------------------------------------------------------
/quickstart/nodejs-hello-world/README.md:
--------------------------------------------------------------------------------
1 | # quickstart/hello-world
2 |
3 | See [quickstart](https://dotenv.org/docs/quickstart)
4 |
--------------------------------------------------------------------------------
/quickstart/sinatra-hello-world/README.md:
--------------------------------------------------------------------------------
1 | # quickstart/hello-world
2 |
3 | See [quickstart](https://dotenv.org/docs/quickstart)
4 |
--------------------------------------------------------------------------------
/rails/fly/app/controllers/www_controller.rb:
--------------------------------------------------------------------------------
1 | class WwwController < ApplicationController
2 | def index
3 | end
4 | end
5 |
6 |
--------------------------------------------------------------------------------
/rails/fly/bin/importmap:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | require_relative "../config/application"
4 | require "importmap/commands"
5 |
--------------------------------------------------------------------------------
/rails/fly/public/robots.txt:
--------------------------------------------------------------------------------
1 | # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2 |
--------------------------------------------------------------------------------
/rails/heroku/app/models/application_record.rb:
--------------------------------------------------------------------------------
1 | class ApplicationRecord < ActiveRecord::Base
2 | primary_abstract_class
3 | end
4 |
--------------------------------------------------------------------------------
/rails/heroku/bin/importmap:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | require_relative "../config/application"
4 | require "importmap/commands"
5 |
--------------------------------------------------------------------------------
/rails/heroku/public/robots.txt:
--------------------------------------------------------------------------------
1 | # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2 |
--------------------------------------------------------------------------------
/rails/kamal/app/models/application_record.rb:
--------------------------------------------------------------------------------
1 | class ApplicationRecord < ActiveRecord::Base
2 | primary_abstract_class
3 | end
4 |
--------------------------------------------------------------------------------
/rails/kamal/bin/importmap:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | require_relative "../config/application"
4 | require "importmap/commands"
5 |
--------------------------------------------------------------------------------
/rails/kamal/public/robots.txt:
--------------------------------------------------------------------------------
1 | # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2 |
--------------------------------------------------------------------------------
/remix/github-actions/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/remix/github-actions/public/favicon.ico
--------------------------------------------------------------------------------
/turborepo/vercel/apps/docs/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | reactStrictMode: true,
3 | transpilePackages: ["ui"],
4 | };
5 |
--------------------------------------------------------------------------------
/turborepo/vercel/apps/web/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | reactStrictMode: true,
3 | transpilePackages: ["ui"],
4 | };
5 |
--------------------------------------------------------------------------------
/usage/dotenv-esm-parse/index.mjs:
--------------------------------------------------------------------------------
1 | import { parse as parseDotEnv } from 'dotenv'
2 |
3 | console.log(parseDotEnv("KEY=value"))
4 |
--------------------------------------------------------------------------------
/usage/dotenv-react/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-react/public/favicon.ico
--------------------------------------------------------------------------------
/usage/dotenv-react/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-react/public/logo192.png
--------------------------------------------------------------------------------
/usage/dotenv-react/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-react/public/logo512.png
--------------------------------------------------------------------------------
/express/docker-compose/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1",
4 | "express": "^4.18.2"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/nuxtjs/edgio/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | // https://nuxt.com/docs/guide/concepts/typescript
3 | "extends": "./.nuxt/tsconfig.json"
4 | }
5 |
--------------------------------------------------------------------------------
/nuxtjs/vercel/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | // https://nuxt.com/docs/guide/concepts/typescript
3 | "extends": "./.nuxt/tsconfig.json"
4 | }
5 |
--------------------------------------------------------------------------------
/quickstart/php-hello-world/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "require": {
3 | "dotenv-org/phpdotenv-vault": "^0.2.4"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/rails/fly/README.md:
--------------------------------------------------------------------------------
1 | # rails/fly
2 |
3 | Read [dotenv.org/docs/frameworks/rails/fly](https://dotenv.org/docs/frameworks/rails/fly)
4 |
--------------------------------------------------------------------------------
/ruby/circleci/build.rb:
--------------------------------------------------------------------------------
1 | # build.rb
2 | require "bundler/setup"
3 | require "dotenv-vault/load"
4 | puts "Hello #{ENV["HELLO"]}"
5 |
6 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-yarn-typescript/index.ts:
--------------------------------------------------------------------------------
1 | import dotenv from "dotenv"
2 |
3 | dotenv.config()
4 |
5 | console.log(process.env)
6 |
--------------------------------------------------------------------------------
/vite/vercel/src/main.ts:
--------------------------------------------------------------------------------
1 | document.querySelector('#app')!.innerHTML = `
2 | Hello ${import.meta.env.VITE_HELLO}.
3 | `
4 |
--------------------------------------------------------------------------------
/astro/netlify/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": ["astro-build.astro-vscode"],
3 | "unwantedRecommendations": []
4 | }
5 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-10-28/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1",
4 | "dotenv-expand": "^10.0.0"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/nodejs/dagger/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "devDependencies": {
3 | "@dagger.io/dagger": "^0.8.1",
4 | "dotenv": "^16.3.1"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/nodejs/fly/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/fly
2 |
3 | Read [dotenv.org/docs/languages/nodejs/fly](https://www.dotenv.org/docs/languages/nodejs/fly)
4 |
--------------------------------------------------------------------------------
/php/heroku/README.md:
--------------------------------------------------------------------------------
1 | # php/heroku
2 |
3 | Read [dotenv.org/docs/languages/php/heroku](https://www.dotenv.org/docs/languages/php/heroku)
4 |
--------------------------------------------------------------------------------
/pm2/heroku/README.md:
--------------------------------------------------------------------------------
1 | # pm2/heroku
2 |
3 | Read [dotenv.org/docs/frameworks/pm2/heroku](https://www.dotenv.org/docs/frameworks/pm2/heroku)
4 |
--------------------------------------------------------------------------------
/ruby/circleci/Gemfile:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | source "https://rubygems.org"
4 |
5 |
6 | gem "dotenv-vault", "~> 0.10.1"
7 |
--------------------------------------------------------------------------------
/sinatra/heroku/index.rb:
--------------------------------------------------------------------------------
1 | require "dotenv-vault/load"
2 | require "sinatra"
3 |
4 | get "/" do
5 | "Hello #{ENV["HELLO"]}."
6 | end
7 |
8 |
--------------------------------------------------------------------------------
/usage/dotenv-codekit/source/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-codekit/source/images/logo.png
--------------------------------------------------------------------------------
/usage/dotenv-vault-nextjs-edge/vercel.json:
--------------------------------------------------------------------------------
1 | {
2 | "buildCommand": "pnpm turbo build",
3 | "ignoreCommand": "pnpm dlx turbo-ignore"
4 | }
5 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-nextjs/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-vault-nextjs/public/favicon.ico
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .DS_Store
3 |
4 | .env*
5 | !.env.project
6 | !.env.example
7 |
8 | # Local Netlify folder
9 | .netlify
10 |
--------------------------------------------------------------------------------
/nestjs/heroku/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
4 | }
5 |
--------------------------------------------------------------------------------
/nodejs/gitlab-ci/.gitlab-ci.yml:
--------------------------------------------------------------------------------
1 | image: node:20.5
2 |
3 | build:
4 | stage: build
5 | script:
6 | - npm install
7 | - npm run build
8 |
--------------------------------------------------------------------------------
/rails/fly/app/channels/application_cable/channel.rb:
--------------------------------------------------------------------------------
1 | module ApplicationCable
2 | class Channel < ActionCable::Channel::Base
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/rails/heroku/README.md:
--------------------------------------------------------------------------------
1 | # rails/heroku
2 |
3 | Read [dotenv.org/docs/frameworks/rails/heroku](https://dotenv.org/docs/frameworks/rails/heroku)
4 |
--------------------------------------------------------------------------------
/rails/kamal/README.md:
--------------------------------------------------------------------------------
1 | # rails/kamal
2 |
3 | Read [dotenv.org/docs/frameworks/rails/kamal](https://dotenv.org/docs/frameworks/rails/kamal)
4 |
5 |
--------------------------------------------------------------------------------
/rails/kamal/app/channels/application_cable/channel.rb:
--------------------------------------------------------------------------------
1 | module ApplicationCable
2 | class Channel < ActionCable::Channel::Base
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/usage/dotenv-codekit/source/images/logo@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-codekit/source/images/logo@2x.png
--------------------------------------------------------------------------------
/usage/dotenv-expand-preload/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.0.0",
4 | "dotenv-expand": "^8.0.0"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-backslash/.env:
--------------------------------------------------------------------------------
1 | AZURE_USER1='dev-****\$dev-****'
2 | AZURE_USER2="dev-****\$dev-****"
3 | AZURE_USER3=`dev-****\$dev-****`
4 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript-config/index.ts:
--------------------------------------------------------------------------------
1 | (async function() {
2 | await import("dotenv/config")
3 |
4 | console.log(process.env)
5 | })()
6 |
--------------------------------------------------------------------------------
/vite/vercel/README.md:
--------------------------------------------------------------------------------
1 | # vite/vercel
2 |
3 | Read [dotenv.org/docs/frameworks/vite/vercel](https://www.dotenv.org/docs/frameworks/vite/vercel)
4 |
--------------------------------------------------------------------------------
/express/fly/README.md:
--------------------------------------------------------------------------------
1 | # express/fly
2 |
3 | Read [dotenv.org/docs/frameworks/express/fly](https://www.dotenv.org/docs/frameworks/express/fly)
4 |
5 |
--------------------------------------------------------------------------------
/flask/heroku/README.md:
--------------------------------------------------------------------------------
1 | # flask/heroku
2 |
3 | Read [dotenv.org/docs/frameworks/flask/heroku](https://www.dotenv.org/docs/frameworks/flask/heroku)
4 |
--------------------------------------------------------------------------------
/nodejs/buddy/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/buddy
2 |
3 | Read [dotenv.org/docs/languages/nodejs/buddy](https://www.dotenv.org/docs/languages/nodejs/buddy)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/docker/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/docker
2 |
3 | Read [dotenv.org/docs/languages/nodejs/docker](https://www.dotenv.org/docs/languages/nodejs/docker)
4 |
--------------------------------------------------------------------------------
/nodejs/heroku/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/heroku
2 |
3 | Read [dotenv.org/docs/languages/nodejs/heroku](https://www.dotenv.org/docs/languages/nodejs/heroku)
4 |
--------------------------------------------------------------------------------
/nodejs/render/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/render
2 |
3 | Read [dotenv.org/docs/languages/nodejs/render](https://www.dotenv.org/docs/languages/nodejs/render)
4 |
--------------------------------------------------------------------------------
/nodejs/vercel/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/vercel
2 |
3 | Read [dotenv.org/docs/languages/nodejs/vercel](https://www.dotenv.org/docs/languages/nodejs/vercel)
4 |
--------------------------------------------------------------------------------
/quickstart/sinatra-hello-world/index.rb:
--------------------------------------------------------------------------------
1 | require "dotenv-vault/load"
2 | require "sinatra"
3 |
4 | get "/" do
5 | "Hello #{ENV["HELLO"]}"
6 | end
7 |
--------------------------------------------------------------------------------
/rails/heroku/app/channels/application_cable/channel.rb:
--------------------------------------------------------------------------------
1 | module ApplicationCable
2 | class Channel < ActionCable::Channel::Base
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/remix/vercel/README.md:
--------------------------------------------------------------------------------
1 | # remix/vercel
2 |
3 | Read [dotenv.org/docs/frameworks/remix/vercel](https://www.dotenv.org/docs/frameworks/remix/vercel)
4 |
--------------------------------------------------------------------------------
/sinatra/heroku/Gemfile:
--------------------------------------------------------------------------------
1 | source "https://rubygems.org"
2 |
3 | gem "sinatra", "~> 3.0"
4 | gem "rackup", "~> 1.0"
5 | gem "dotenv-vault", "~> 0.10.1"
6 |
--------------------------------------------------------------------------------
/usage/dotenv-command-substitution/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.0.0",
4 | "dotenv-eval": "^0.2.0"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/usage/dotenv-nestjs/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
4 | }
5 |
--------------------------------------------------------------------------------
/usage/dotenv-react-typescript/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-react-typescript/public/favicon.ico
--------------------------------------------------------------------------------
/usage/dotenv-react-typescript/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-react-typescript/public/logo192.png
--------------------------------------------------------------------------------
/usage/dotenv-react-typescript/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-react-typescript/public/logo512.png
--------------------------------------------------------------------------------
/usage/dotenv-vault-nextjs-edge/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-vault-nextjs-edge/public/favicon.ico
--------------------------------------------------------------------------------
/usage/dotenv-webpack2/dist/main.js:
--------------------------------------------------------------------------------
1 | document.body.appendChild(function(){const e=document.createElement("div");return e.innerHTML="Hello CHANGE_ME",e}());
--------------------------------------------------------------------------------
/angular/vercel/README.md:
--------------------------------------------------------------------------------
1 | # angular/vercel
2 |
3 | Read [dotenv.org/docs/frameworks/angular/vercel](https://www.dotenv.org/docs/frameworks/angular/vercel)
4 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-10-24/README.md:
--------------------------------------------------------------------------------
1 | Example code from the blog at [What is a .env.vault file](https://dotenv.org/blog/2023/10/24/what-is-env-vault-file.html)
2 |
--------------------------------------------------------------------------------
/express/heroku/README.md:
--------------------------------------------------------------------------------
1 | # express/heroku
2 |
3 | Read [dotenv.org/docs/frameworks/express/heroku](https://www.dotenv.org/docs/frameworks/express/heroku)
4 |
--------------------------------------------------------------------------------
/express/vercel/README.md:
--------------------------------------------------------------------------------
1 | # express/vercel
2 |
3 | Read [dotenv.org/docs/frameworks/express/vercel](https://www.dotenv.org/docs/frameworks/express/vercel)
4 |
--------------------------------------------------------------------------------
/nestjs/heroku/README.md:
--------------------------------------------------------------------------------
1 | # nestjs/heroku
2 |
3 | Read [dotenv.org/docs/frameworks/nestjs/heroku](https://www.dotenv.org/docs/frameworks/nestjs/heroku)
4 |
--------------------------------------------------------------------------------
/nextjs/netlify/README.md:
--------------------------------------------------------------------------------
1 | # nextjs/netlify
2 |
3 | Read [dotenv.org/docs/frameworks/nextjs/netlify](https://www.dotenv.org/docs/frameworks/nextjs/netlify)
4 |
--------------------------------------------------------------------------------
/nodejs/buddy/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "build": "node build.js"
4 | },
5 | "dependencies": {
6 | "dotenv": "^16.3.1"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nodejs/dagger/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/dagger
2 |
3 | Read [dotenv.org/docs/languages/nodejs/dagger](https://www.dotenv.org/docs/languages/nodejs/dagger)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/fly/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "start": "node index.js"
4 | },
5 | "dependencies": {
6 | "dotenv": "^16.3.1"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nodejs/railway/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/railway
2 |
3 | Read [dotenv.org/docs/languages/nodejs/railway](https://www.dotenv.org/docs/languages/nodejs/railway)
4 |
--------------------------------------------------------------------------------
/nuxtjs/edgio/README.md:
--------------------------------------------------------------------------------
1 | # nuxtjs/edgio
2 |
3 | Read [dotenv.org/docs/frameworks/nuxtjs/edgio](https://www.dotenv.org/docs/frameworks/nuxtjs/edgio)
4 |
5 |
--------------------------------------------------------------------------------
/rails/fly/app/channels/application_cable/connection.rb:
--------------------------------------------------------------------------------
1 | module ApplicationCable
2 | class Connection < ActionCable::Connection::Base
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/rails/fly/config/routes.rb:
--------------------------------------------------------------------------------
1 | Rails.application.routes.draw do
2 | get "up" => "rails/health#show", as: :rails_health_check
3 | root "www#index"
4 | end
5 |
--------------------------------------------------------------------------------
/rails/heroku/app/channels/application_cable/connection.rb:
--------------------------------------------------------------------------------
1 | module ApplicationCable
2 | class Connection < ActionCable::Connection::Base
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/rails/kamal/app/channels/application_cable/connection.rb:
--------------------------------------------------------------------------------
1 | module ApplicationCable
2 | class Connection < ActionCable::Connection::Base
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/ruby/circleci/README.md:
--------------------------------------------------------------------------------
1 | # ruby/circleci
2 |
3 | Read [dotenv.org/docs/languages/ruby/circleci](https://www.dotenv.org/docs/languages/ruby/circleci)
4 |
5 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-yarn-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv-vault": "^1.23.0",
4 | "typescript": "^5.0.4"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/astro/netlify/README.md:
--------------------------------------------------------------------------------
1 | # astro/netlify
2 |
3 | Read [dotenv.org/docs/frameworks/astro/netlify](https://www.dotenv.org/docs/frameworks/astro/netlify)
4 |
5 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-10-28/README.md:
--------------------------------------------------------------------------------
1 | Example code from the blog at [Node.js 20.6.0 includes built-in support for .env files](https://dotenv.org/blog/2023/10/28/)
2 |
--------------------------------------------------------------------------------
/laravel/heroku/README.md:
--------------------------------------------------------------------------------
1 | # laravel/heroku
2 |
3 | Read [dotenv.org/docs/frameworks/laravel/heroku](https://www.dotenv.org/docs/frameworks/laravel/heroku)
4 |
5 |
--------------------------------------------------------------------------------
/nextjs/vercel/README.md:
--------------------------------------------------------------------------------
1 | # nextjs/vercel
2 |
3 | Read [dotenv.org/docs/frameworks/nextjs/vercel](https://www.dotenv.org/docs/frameworks/nextjs/vercel)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/bitbucket/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "build": "node build.js"
4 | },
5 | "dependencies": {
6 | "dotenv": "^16.3.1"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nodejs/circleci/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "build": "node build.js"
4 | },
5 | "dependencies": {
6 | "dotenv": "^16.3.1"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nodejs/cloud66/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/cloud66
2 |
3 | Read [dotenv.org/docs/languages/nodejs/cloud66](https://www.dotenv.org/docs/languages/nodejs/cloud66)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/docker/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "start": "node index.js"
4 | },
5 | "dependencies": {
6 | "dotenv": "^16.3.1"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nodejs/gitlab-ci/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "build": "node build.js"
4 | },
5 | "dependencies": {
6 | "dotenv": "^16.3.1"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nodejs/render/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "start": "node index.js"
4 | },
5 | "dependencies": {
6 | "dotenv": "^16.3.1"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nodejs/travis-ci/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "test": "node build.js"
4 | },
5 | "dependencies": {
6 | "dotenv": "^16.3.1"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nuxtjs/vercel/README.md:
--------------------------------------------------------------------------------
1 | # nuxtjs/vercel
2 |
3 | Read [dotenv.org/docs/frameworks/nuxtjs/vercel](https://www.dotenv.org/docs/frameworks/nuxtjs/vercel)
4 |
5 |
--------------------------------------------------------------------------------
/rails/fly/app/mailers/application_mailer.rb:
--------------------------------------------------------------------------------
1 | class ApplicationMailer < ActionMailer::Base
2 | default from: "from@example.com"
3 | layout "mailer"
4 | end
5 |
--------------------------------------------------------------------------------
/rails/kamal/app/mailers/application_mailer.rb:
--------------------------------------------------------------------------------
1 | class ApplicationMailer < ActionMailer::Base
2 | default from: "from@example.com"
3 | layout "mailer"
4 | end
5 |
--------------------------------------------------------------------------------
/rails/kamal/config/routes.rb:
--------------------------------------------------------------------------------
1 | Rails.application.routes.draw do
2 | get "up" => "rails/health#show", as: :rails_health_check
3 | root "www#index"
4 | end
5 |
--------------------------------------------------------------------------------
/sinatra/heroku/README.md:
--------------------------------------------------------------------------------
1 | # sinatra/heroku
2 |
3 | Read [dotenv.org/docs/frameworks/sinatra/heroku](https://www.dotenv.org/docs/frameworks/sinatra/heroku)
4 |
5 |
--------------------------------------------------------------------------------
/usage/dotenv-assignment/index.js:
--------------------------------------------------------------------------------
1 | const result = require('dotenv').config()
2 | const env = result.parsed
3 | console.log(env)
4 | console.log(env["HELLO"])
5 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-inline-comments-expand/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.4.1",
4 | "dotenv-expand": "^10.0.0"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/express/docker-compose/Dockerfile:
--------------------------------------------------------------------------------
1 | # Dockerfile
2 | FROM node:16
3 | WORKDIR /usr/src/app
4 | COPY package*.json ./
5 | RUN npm install
6 | COPY . .
7 | EXPOSE 3000
8 |
--------------------------------------------------------------------------------
/nodejs/circleci/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/circleci
2 |
3 | Read [dotenv.org/docs/languages/nodejs/circleci](https://www.dotenv.org/docs/languages/nodejs/circleci)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/fly/.dockerignore:
--------------------------------------------------------------------------------
1 | fly.toml
2 | Dockerfile
3 | .dockerignore
4 | node_modules
5 | .git
6 |
7 | .env*
8 | .flaskenv*
9 | !.env.project
10 | !.env.vault
--------------------------------------------------------------------------------
/nodejs/github-actions/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "build": "node build.js"
4 | },
5 | "dependencies": {
6 | "dotenv": "^16.3.1"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nuxtjs/edgio/routes.ts:
--------------------------------------------------------------------------------
1 | import { Router } from '@edgio/core'
2 | import { nuxtRoutes } from '@edgio/nuxt-nitro'
3 |
4 | export default new Router().use(nuxtRoutes)
5 |
--------------------------------------------------------------------------------
/rails/heroku/app/mailers/application_mailer.rb:
--------------------------------------------------------------------------------
1 | class ApplicationMailer < ActionMailer::Base
2 | default from: "from@example.com"
3 | layout "mailer"
4 | end
5 |
--------------------------------------------------------------------------------
/remix/vercel/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
3 | /.cache
4 | /build
5 | /public/build
6 | .env
7 |
8 | .env*
9 | .flaskenv*
10 | !.env.project
11 | !.env.vault
--------------------------------------------------------------------------------
/turborepo/vercel/packages/ui/index.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react";
2 |
3 | // component exports
4 | export * from "./Button";
5 | export * from "./Header";
6 |
--------------------------------------------------------------------------------
/usage/dotenv-supertest/index.js:
--------------------------------------------------------------------------------
1 | const app = require('./app.js')
2 |
3 | app.listen(3000, () => {
4 | console.log('Example app listening on port 3000')
5 | })
6 |
--------------------------------------------------------------------------------
/flask/heroku/wsgi.py:
--------------------------------------------------------------------------------
1 | from dotenv_vault import load_dotenv
2 | load_dotenv()
3 | from index import app
4 |
5 | if __name__ == '__main__':
6 | app.run(debug=False)
7 |
8 |
--------------------------------------------------------------------------------
/nodejs/aws-lambda/README.md:
--------------------------------------------------------------------------------
1 | # nodjes/aws-lambda
2 |
3 | Read [dotenv.org/docs/languages/nodejs/aws-lambda](https://www.dotenv.org/docs/languages/nodejs/aws-lambda)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/bitbucket/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/bitbucket
2 |
3 | Read [dotenv.org/docs/languages/nodejs/bitbucket](https://www.dotenv.org/docs/languages/nodejs/bitbucket)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/gitlab-ci/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/gitlab-ci
2 |
3 | Read [dotenv.org/docs/languages/nodejs/gitlab-ci](https://www.dotenv.org/docs/languages/nodejs/gitlab-ci)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/northflank/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/northflank
2 |
3 | Read [dotenv.org/docs/languages/nodejs/northflank](https://www.dotenv.org/docs/languages/nodesj/northflank)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/travis-ci/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/travis-ci
2 |
3 | Read [dotenv.org/docs/languages/nodejs/travis-ci](https://www.dotenv.org/docs/languages/nodejs/travis-ci)
4 |
5 |
--------------------------------------------------------------------------------
/remix/github-actions/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
3 | /.cache
4 | /build
5 | /public/build
6 | .env
7 |
8 | .env*
9 | .flaskenv*
10 | !.env.project
11 | !.env.vault
--------------------------------------------------------------------------------
/rocket-rs/heroku/README.md:
--------------------------------------------------------------------------------
1 | # rocket-rs/heroku
2 |
3 | Read [dotenv.org/docs/frameworks/rocket-rs/heroku](https://www.dotenv.org/docs/frameworks/rocket-rs/heroku)
4 |
5 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript-custom-target/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "motdotla/dotenv#50163a1de9ae392fef03600350fef7d043e26361"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/express/fly/.dockerignore:
--------------------------------------------------------------------------------
1 | /.git
2 | /node_modules
3 | .dockerignore
4 | .env
5 | Dockerfile
6 | fly.toml
7 |
8 | .env*
9 | .flaskenv*
10 | !.env.project
11 | !.env.vault
--------------------------------------------------------------------------------
/gatsby/gatsby-edge/README.md:
--------------------------------------------------------------------------------
1 | # gatsby/gatsby-edge
2 |
3 | Read [dotenv.org/docs/frameworks/gatsby/gatsby-edge](https://www.dotenv.org/docs/frameworks/gatsby/gatsby-edge)
4 |
--------------------------------------------------------------------------------
/nextjs/vercel/pages/index.tsx:
--------------------------------------------------------------------------------
1 | export default function IndexPage() {
2 | return (
3 |
4 | Hello {process.env.NEXT_PUBLIC_HELLO}.
5 |
6 | )
7 | }
8 |
--------------------------------------------------------------------------------
/nuxtjs/edgio/app.vue:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Hello {{config.public.HELLO}}.
7 |
8 |
--------------------------------------------------------------------------------
/nuxtjs/vercel/app.vue:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Hello {{config.public.HELLO}}.
7 |
8 |
--------------------------------------------------------------------------------
/rails/fly/bin/rails:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | APP_PATH = File.expand_path("../config/application", __dir__)
3 | require_relative "../config/boot"
4 | require "rails/commands"
5 |
--------------------------------------------------------------------------------
/rails/kamal/bin/rails:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | APP_PATH = File.expand_path("../config/application", __dir__)
3 | require_relative "../config/boot"
4 | require "rails/commands"
5 |
--------------------------------------------------------------------------------
/svelte-kit/vercel/README.md:
--------------------------------------------------------------------------------
1 | # svelte-kit/vercel
2 |
3 | Read [dotenv.org/docs/frameworks/svelte-kit/vercel](https://www.dotenv.org/docs/frameworks/svelte-kit/vercel)
4 |
5 |
--------------------------------------------------------------------------------
/turborepo/vercel/README.md:
--------------------------------------------------------------------------------
1 | # turborepo/vercel
2 |
3 | Read [dotenv.org/docs/frameworks/turborepo/vercel](https://www.dotenv.org/docs/frameworks/turborepo/vercel)
4 |
5 |
6 |
--------------------------------------------------------------------------------
/turborepo/vercel/packages/ui/Header.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react";
2 |
3 | export const Header = ({ text }: { text: string }) => {
4 | return {text}
;
5 | };
6 |
--------------------------------------------------------------------------------
/turborepo/vercel/packages/ui/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "tsconfig/react-library.json",
3 | "include": ["."],
4 | "exclude": ["dist", "build", "node_modules"]
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-assignment/README.md:
--------------------------------------------------------------------------------
1 | # dotenv-assignment
2 |
3 | Demonstrates assigning the parsed values to a variable.
4 |
5 | ```
6 | npm install
7 | node index.js
8 | ```
9 |
--------------------------------------------------------------------------------
/usage/dotenv-cypress-typescript/cypress/videos/spec.cy.ts.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotenv-org/examples/HEAD/usage/dotenv-cypress-typescript/cypress/videos/spec.cy.ts.mp4
--------------------------------------------------------------------------------
/usage/dotenv-vault-typescript-custom-target/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "motdotla/dotenv#80fff4bbf052c68e51b7a3efcca6e9322621202a"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/nextjs/netlify/pages/index.tsx:
--------------------------------------------------------------------------------
1 | export default function IndexPage() {
2 | return (
3 |
4 | Hello {process.env.NEXT_PUBLIC_HELLO}.
5 |
6 | )
7 | }
8 |
--------------------------------------------------------------------------------
/nodejs/digital-ocean/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/digital-ocean
2 |
3 | Read [dotenv.org/docs/languages/nodejs/digital-ocean](https://www.dotenv.org/docs/languages/nodejs/digital-ocean)
4 |
--------------------------------------------------------------------------------
/nodejs/docker/Dockerfile:
--------------------------------------------------------------------------------
1 | # Dockerfile
2 | FROM node:16
3 | WORKDIR /usr/src/app
4 | COPY package*.json ./
5 | RUN npm install
6 | COPY . .
7 | EXPOSE 3000
8 | CMD node index.js
9 |
--------------------------------------------------------------------------------
/nodejs/northflank/Dockerfile:
--------------------------------------------------------------------------------
1 | # Dockerfile
2 | FROM node:16
3 | WORKDIR /usr/src/app
4 | COPY package*.json ./
5 | RUN npm install
6 | COPY . .
7 | EXPOSE 80
8 | CMD node index.js
9 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/resources/views/welcome.blade.php:
--------------------------------------------------------------------------------
1 |
4 | Hello {process.env.NEXT_PUBLIC_HELLO}.
5 | >
6 | );
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/usage/dotenv-es6-import-pitfall/valid.mjs:
--------------------------------------------------------------------------------
1 | import 'dotenv/config'
2 | import errorReporter from './errorReporter.mjs'
3 |
4 | errorReporter.report(new Error('documented example'))
5 |
--------------------------------------------------------------------------------
/angular/vercel/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3 | "recommendations": ["angular.ng-template"]
4 | }
5 |
--------------------------------------------------------------------------------
/github-actions/.eslintrc.js:
--------------------------------------------------------------------------------
1 | /** @type {import('eslint').Linter.Config} */
2 | module.exports = {
3 | extends: ["@remix-run/eslint-config", "@remix-run/eslint-config/node"],
4 | };
5 |
--------------------------------------------------------------------------------
/nextjs/github-actions/README.md:
--------------------------------------------------------------------------------
1 | # nextjs/github-actions
2 |
3 | Read [dotenv.org/docs/frameworks/nextjs/github-actions](https://www.dotenv.org/docs/frameworks/nextjs/github-actions)
4 |
--------------------------------------------------------------------------------
/nodejs/aws-beanstalk/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/aws-beanstalk
2 |
3 | Read [dotenv.org/docs/languages/nodejs/aws-beanstalk](https://www.dotenv.org/docs/langauges/nodejs/aws-beanstalk)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/bitbucket/bitbucket-pipelines.yml:
--------------------------------------------------------------------------------
1 | image: node:20
2 | pipelines:
3 | default:
4 | - step:
5 | script:
6 | - npm install
7 | - npm run build
8 |
9 |
--------------------------------------------------------------------------------
/nodejs/fly/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | # Added for example purposes only! You should not commit your .env file to code.
8 | !.env
9 |
--------------------------------------------------------------------------------
/nodejs/github-actions/README.md:
--------------------------------------------------------------------------------
1 | # nodejs/github-actions
2 |
3 | Read [dotenv.org/docs/languages/nodejs/github-actions](https://www.dotenv.org/docs/languages/nodejs/github-actions)
4 |
--------------------------------------------------------------------------------
/nodejs/render/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | # Added for example purposes only! You should not commit your .env file to code.
8 | !.env
9 |
--------------------------------------------------------------------------------
/remix/github-actions/README.md:
--------------------------------------------------------------------------------
1 | # remix/github-actions
2 |
3 | Read [dotenv.org/docs/frameworks/remix/github-actions](https://www.dotenv.org/docs/frameworks/remix/github-actions)
4 |
5 |
--------------------------------------------------------------------------------
/serverless/aws-lambda/README.md:
--------------------------------------------------------------------------------
1 | # serverless/aws-lambda
2 |
3 | Read [dotenv.org/docs/frameworks/serverless/aws-lambda](https://www.dotenv.org/docs/frameworks/serverless/aws-lambda)
4 |
--------------------------------------------------------------------------------
/sinatra/heroku/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | # for example purposes only. you should NOT commit your .env to source code
8 | !.env
9 |
--------------------------------------------------------------------------------
/usage/dotenv-config-url-path/README.md:
--------------------------------------------------------------------------------
1 | # dotenv-config-url-path
2 |
3 | Demonstrates passing a `URL` object instead of a string.
4 |
5 | ```
6 | npm install
7 | node index.js
8 | ```
9 |
--------------------------------------------------------------------------------
/usage/dotenv-nestjs/README.md:
--------------------------------------------------------------------------------
1 | # README
2 |
3 | See [https://docs.nestjs.com/techniques/configuration](https://docs.nestjs.com/techniques/configuration) for using dotenv with NestJS
4 |
--------------------------------------------------------------------------------
/express/docker-compose/README.md:
--------------------------------------------------------------------------------
1 | # express/docker-compose
2 |
3 | Read [dotenv.org/docs/frameworks/express/docker-compose](https://www.dotenv.org/docs/frameworks/express/docker-compose)
4 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/README.md:
--------------------------------------------------------------------------------
1 | # laravel/laravel-forge
2 |
3 | Read [dotenv.org/docs/frameworks/laravel/laravel-forge](https://www.dotenv.org/docs/frameworks/laravel/laravel-forge)
4 |
5 |
--------------------------------------------------------------------------------
/nodejs/railway/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | # Added for example purposes only! You should not commit your .env file to code.
8 | !.env
9 |
--------------------------------------------------------------------------------
/quickstart/echo-hello-world/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | # for example only. do not actually commit your real .env file to code
8 | !.env
9 |
--------------------------------------------------------------------------------
/remix/github-actions/.eslintrc.js:
--------------------------------------------------------------------------------
1 | /** @type {import('eslint').Linter.Config} */
2 | module.exports = {
3 | extends: ["@remix-run/eslint-config", "@remix-run/eslint-config/node"],
4 | };
5 |
--------------------------------------------------------------------------------
/nodejs/cloud66/Dockerfile:
--------------------------------------------------------------------------------
1 | # Dockerfile
2 | FROM node:16
3 | WORKDIR /usr/src/app
4 | COPY package*.json ./
5 | RUN npm install
6 | COPY . .
7 | EXPOSE 3000
8 | CMD node index.js
9 |
10 |
--------------------------------------------------------------------------------
/pm2/heroku/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
3 | .env*
4 | .flaskenv*
5 | !.env.project
6 | !.env.vault
7 |
8 | # for example purposes ONLY. do not commit your .env file to code
9 | !.env
10 |
--------------------------------------------------------------------------------
/rails/fly/app/assets/config/manifest.js:
--------------------------------------------------------------------------------
1 | //= link_tree ../images
2 | //= link_directory ../stylesheets .css
3 | //= link_tree ../../javascript .js
4 | //= link_tree ../../../vendor/javascript .js
5 |
--------------------------------------------------------------------------------
/usage/dotenv-config-url-path/index.js:
--------------------------------------------------------------------------------
1 | const dir = process.cwd()
2 | const url = new URL(`file://${dir}/.env`)
3 | require('dotenv').config({ path: url })
4 |
5 | console.log(process.env.HELLO)
6 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-backslash/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config()
2 |
3 | console.log(process.env.AZURE_USER1)
4 | console.log(process.env.AZURE_USER2)
5 | console.log(process.env.AZURE_USER3)
6 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-custom-target/.env.vault:
--------------------------------------------------------------------------------
1 | # .env.vault (generated with npx dotenv-vault local build)
2 | DOTENV_VAULT_DEVELOPMENT="7dEq+tZW6U8Aay5GlVakkaNw88lNUGtCr+Umf+R2Dm03ocAowTrKi7oYEewT"
3 |
--------------------------------------------------------------------------------
/php/heroku/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | # for guide/demo purposes only. DON'T commit your real .env to code
8 | !.env
9 |
10 | vendor/
11 |
--------------------------------------------------------------------------------
/rails/fly/config.ru:
--------------------------------------------------------------------------------
1 | # This file is used by Rack-based servers to start the application.
2 |
3 | require_relative "config/environment"
4 |
5 | run Rails.application
6 | Rails.application.load_server
7 |
--------------------------------------------------------------------------------
/rails/heroku/app/assets/config/manifest.js:
--------------------------------------------------------------------------------
1 | //= link_tree ../images
2 | //= link_directory ../stylesheets .css
3 | //= link_tree ../../javascript .js
4 | //= link_tree ../../../vendor/javascript .js
5 |
--------------------------------------------------------------------------------
/rails/kamal/app/assets/config/manifest.js:
--------------------------------------------------------------------------------
1 | //= link_tree ../images
2 | //= link_directory ../stylesheets .css
3 | //= link_tree ../../javascript .js
4 | //= link_tree ../../../vendor/javascript .js
5 |
--------------------------------------------------------------------------------
/rocket-rs/heroku/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 |
3 | .env*
4 | .flaskenv*
5 | !.env.project
6 | !.env.vault
7 |
8 | # for example purposes only. DO NOT commit your .env file to code
9 | !.env
10 |
--------------------------------------------------------------------------------
/svelte-kit/vercel/vite.config.js:
--------------------------------------------------------------------------------
1 | import { sveltekit } from '@sveltejs/kit/vite';
2 | import { defineConfig } from 'vite';
3 |
4 | export default defineConfig({
5 | plugins: [sveltekit()]
6 | });
7 |
--------------------------------------------------------------------------------
/usage/dotenv-supertest/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "assert": "^2.0.0",
4 | "dotenv": "^16.1.0-rc1",
5 | "express": "^4.18.2",
6 | "supertest": "^6.3.3"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/laravel/heroku/storage/framework/.gitignore:
--------------------------------------------------------------------------------
1 | compiled.php
2 | config.php
3 | down
4 | events.scanned.php
5 | maintenance.php
6 | routes.php
7 | routes.scanned.php
8 | schedule-*
9 | services.json
10 |
--------------------------------------------------------------------------------
/nodejs/buddy/build.js:
--------------------------------------------------------------------------------
1 | // build.js
2 | require('dotenv').config()
3 | console.log(process.env) // remove this after you've confirmed it is working
4 |
5 | console.log(`Hello ${process.env.HELLO}`)
6 |
7 |
--------------------------------------------------------------------------------
/nodejs/circleci/build.js:
--------------------------------------------------------------------------------
1 | // build.js
2 | require('dotenv').config()
3 | console.log(process.env) // remove this after you've confirmed it is working
4 |
5 | console.log(`Hello ${process.env.HELLO}`)
6 |
7 |
--------------------------------------------------------------------------------
/nodejs/google-cloud-build/README.md:
--------------------------------------------------------------------------------
1 | # nodjes/google-cloud-build
2 |
3 | Read [dotenv.org/docs/languages/nodejs/google-cloud-build](https://www.dotenv.org/docs/languages/nodejs/google-cloud-build)
4 |
5 |
--------------------------------------------------------------------------------
/rails/fly/app/javascript/application.js:
--------------------------------------------------------------------------------
1 | // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
2 | import "@hotwired/turbo-rails"
3 | import "controllers"
4 |
--------------------------------------------------------------------------------
/rails/heroku/config.ru:
--------------------------------------------------------------------------------
1 | # This file is used by Rack-based servers to start the application.
2 |
3 | require_relative "config/environment"
4 |
5 | run Rails.application
6 | Rails.application.load_server
7 |
--------------------------------------------------------------------------------
/rails/kamal/config.ru:
--------------------------------------------------------------------------------
1 | # This file is used by Rack-based servers to start the application.
2 |
3 | require_relative "config/environment"
4 |
5 | run Rails.application
6 | Rails.application.load_server
7 |
--------------------------------------------------------------------------------
/serverless/aws-lambda/.gitignore:
--------------------------------------------------------------------------------
1 | # package directories
2 | node_modules
3 | jspm_packages
4 |
5 | # Serverless directories
6 | .serverless
7 | .env*
8 | .flaskenv*
9 | !.env.project
10 | !.env.vault
--------------------------------------------------------------------------------
/usage/dotenv-esm/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-esm
2 |
3 | An example of using dotenv with ESM (ECMAScript Modules).
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | node index.mjs
10 | ```
11 |
--------------------------------------------------------------------------------
/usage/dotenv-express/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-express
2 |
3 | An example of using dotenv with ExpressJS.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | node index.js
10 | ```
11 |
12 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-nextjs/.env.vault:
--------------------------------------------------------------------------------
1 | # .env.vault (generated with npx dotenv-vault local build)
2 | DOTENV_VAULT_DEVELOPMENT="k6DnWLs1Ox6zxX7HL9kcUtuNrfDSzmWv3m6gr875LEEi8XTPldHQ9fXztzNVl23l4NYXdTtPxDST"
3 |
--------------------------------------------------------------------------------
/nodejs/bitbucket/build.js:
--------------------------------------------------------------------------------
1 | // build.js
2 | require('dotenv').config()
3 | console.log(process.env) // remove this after you've confirmed it is working
4 |
5 | console.log(`Hello ${process.env.HELLO}`)
6 |
7 |
--------------------------------------------------------------------------------
/nodejs/github-actions/build.js:
--------------------------------------------------------------------------------
1 | // build.js
2 | require('dotenv').config()
3 | console.log(process.env) // remove this after you've confirmed it is working
4 |
5 | console.log(`Hello ${process.env.HELLO}`)
6 |
--------------------------------------------------------------------------------
/nodejs/gitlab-ci/build.js:
--------------------------------------------------------------------------------
1 | // build.js
2 | require('dotenv').config()
3 | console.log(process.env) // remove this after you've confirmed it is working
4 |
5 | console.log(`Hello ${process.env.HELLO}`)
6 |
7 |
--------------------------------------------------------------------------------
/nodejs/travis-ci/build.js:
--------------------------------------------------------------------------------
1 | // build.js
2 | require('dotenv').config()
3 | console.log(process.env) // remove this after you've confirmed it is working
4 |
5 | console.log(`Hello ${process.env.HELLO}`)
6 |
7 |
--------------------------------------------------------------------------------
/quickstart/express-hello-world/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | # for example purposes only. recommended you don't usually commit your .env file to code
8 | !.env
9 |
--------------------------------------------------------------------------------
/quickstart/rust-hello-world/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 |
3 | .env*
4 | .flaskenv*
5 | !.env.project
6 | !.env.vault
7 |
8 | # for example purposes only. DO NOT commit your .env file to code
9 | !.env
10 |
--------------------------------------------------------------------------------
/quickstart/sinatra-hello-world/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | # for example purposes only. don't commit your .env file to code in your own projects
8 | !.env
9 |
--------------------------------------------------------------------------------
/rails/heroku/app/javascript/application.js:
--------------------------------------------------------------------------------
1 | // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
2 | import "@hotwired/turbo-rails"
3 | import "controllers"
4 |
--------------------------------------------------------------------------------
/rails/kamal/app/javascript/application.js:
--------------------------------------------------------------------------------
1 | // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
2 | import "@hotwired/turbo-rails"
3 | import "controllers"
4 |
--------------------------------------------------------------------------------
/turborepo/vercel/packages/ui/Button.tsx:
--------------------------------------------------------------------------------
1 | "use client";
2 |
3 | import * as React from "react";
4 |
5 | export const Button = () => {
6 | return ;
7 | };
8 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-nextjs-edge/next.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('next').NextConfig} */
2 | const nextConfig = {
3 | reactStrictMode: true,
4 | swcMinify: true,
5 | }
6 |
7 | module.exports = nextConfig
8 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-nextjs-edge/pages/_app.js:
--------------------------------------------------------------------------------
1 | import '../styles/globals.css'
2 |
3 | function MyApp({ Component, pageProps }) {
4 | return
5 | }
6 |
7 | export default MyApp
8 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-typescript-custom-target/.env.vault:
--------------------------------------------------------------------------------
1 | # .env.vault (generated with npx dotenv-vault local build)
2 | DOTENV_VAULT_DEVELOPMENT="7dEq+tZW6U8Aay5GlVakkaNw88lNUGtCr+Umf+R2Dm03ocAowTrKi7oYEewT"
3 |
--------------------------------------------------------------------------------
/usage/dotenv-yarn/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-yarn
2 |
3 | An example of using dotenv with yarn.
4 |
5 | ## Usage
6 |
7 | ```
8 | brew install yarn
9 | yarn install
10 | node index.js
11 | ```
12 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/storage/framework/.gitignore:
--------------------------------------------------------------------------------
1 | compiled.php
2 | config.php
3 | down
4 | events.scanned.php
5 | maintenance.php
6 | routes.php
7 | routes.scanned.php
8 | schedule-*
9 | services.json
10 |
--------------------------------------------------------------------------------
/nodejs/heroku/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
3 | .env*
4 | .flaskenv*
5 | !.env.project
6 | !.env.vault
7 |
8 | # Added for example purposes only! You should not commit your .env file to code.
9 | !.env
10 |
--------------------------------------------------------------------------------
/quickstart/rust-hello-world/src/main.rs:
--------------------------------------------------------------------------------
1 | fn main() {
2 | let _ = dotenv_vault::dotenv();
3 |
4 | let hello = std::env::var("HELLO").unwrap_or("".to_string());
5 |
6 | println!("Hello {hello}");
7 | }
8 |
--------------------------------------------------------------------------------
/nestjs/heroku/src/app.service.ts:
--------------------------------------------------------------------------------
1 | import { Injectable } from '@nestjs/common';
2 |
3 | @Injectable()
4 | export class AppService {
5 | getHello(): string {
6 | return `Hello ${process.env.HELLO}`;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nodejs/digital-ocean/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
3 | .env*
4 | .flaskenv*
5 | !.env.project
6 | !.env.vault
7 |
8 | # Added for example purposes only! You should not commit your .env file to code.
9 | !.env
10 |
--------------------------------------------------------------------------------
/rails/fly/test/application_system_test_case.rb:
--------------------------------------------------------------------------------
1 | require "test_helper"
2 |
3 | class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
4 | driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
5 | end
6 |
--------------------------------------------------------------------------------
/usage/dotenv-command-substitution/index.js:
--------------------------------------------------------------------------------
1 | var dotenv = require('dotenv')
2 | var dotenvEval = require('dotenv-eval')
3 |
4 | var myEnv = dotenv.config()
5 | dotenvEval.eval(myEnv)
6 |
7 | console.log(process.env)
8 |
--------------------------------------------------------------------------------
/usage/dotenv-cypress-typescript/cypress/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "lib": ["es5", "dom"],
5 | "types": ["cypress", "node"]
6 | },
7 | "include": ["**/*.ts"]
8 | }
9 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-11-07/REAMDE.md:
--------------------------------------------------------------------------------
1 | Example code from the blog at [PHP dotenv is inconsistent across development and production](https://dotenv.org/blog/2023/11/07/phpdotenv-is-inconsistent-across-development-and-production)
2 |
--------------------------------------------------------------------------------
/nuxtjs/edgio/plugins/edgio-devtools.client.ts:
--------------------------------------------------------------------------------
1 | import install from '@edgio/devtools/install'
2 |
3 | export default defineNuxtPlugin(nuxtApp => {
4 | nuxtApp.hook('app:mounted', () => {
5 | install()
6 | })
7 | })
8 |
--------------------------------------------------------------------------------
/php/heroku/index.php:
--------------------------------------------------------------------------------
1 | safeLoad();
7 |
8 | echo "Hello {$_ENV['HELLO']}";
9 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/storage/framework/.gitignore:
--------------------------------------------------------------------------------
1 | compiled.php
2 | config.php
3 | down
4 | events.scanned.php
5 | maintenance.php
6 | routes.php
7 | routes.scanned.php
8 | schedule-*
9 | services.json
10 |
--------------------------------------------------------------------------------
/rails/heroku/test/application_system_test_case.rb:
--------------------------------------------------------------------------------
1 | require "test_helper"
2 |
3 | class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
4 | driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
5 | end
6 |
--------------------------------------------------------------------------------
/rails/kamal/test/application_system_test_case.rb:
--------------------------------------------------------------------------------
1 | require "test_helper"
2 |
3 | class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
4 | driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
5 | end
6 |
--------------------------------------------------------------------------------
/turborepo/vercel/packages/tsconfig/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tsconfig",
3 | "version": "0.0.0",
4 | "private": true,
5 | "license": "MIT",
6 | "publishConfig": {
7 | "access": "public"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/usage/dotenv-config-error/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config({ debug: false })
2 |
3 | console.log("hello", process.env.NAME)
4 |
5 | require('dotenv').config({ debug: true })
6 |
7 | console.log("hello", process.env.NAME)
8 |
--------------------------------------------------------------------------------
/usage/dotenv-cypress-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "devDependencies": {
3 | "cypress": "^12.13.0",
4 | "typescript": "^5.0.4"
5 | },
6 | "dependencies": {
7 | "dotenv": "^16.1.3"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/usage/dotenv-nestjs/src/app.service.ts:
--------------------------------------------------------------------------------
1 | import { Injectable } from '@nestjs/common';
2 |
3 | @Injectable()
4 | export class AppService {
5 | getHello(): string {
6 | return `Hello, ${process.env.NAME}!`;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-debug/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config({ debug: false })
2 |
3 | console.log("hello", process.env.NAME)
4 |
5 | require('dotenv').config({ debug: true })
6 |
7 | console.log("hello", process.env.NAME)
8 |
--------------------------------------------------------------------------------
/usage/dotenv-react/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-react
2 |
3 | An example of using dotenv with react.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | npm start
10 | // edit .env file to see changes
11 | ```
12 |
--------------------------------------------------------------------------------
/gatsby/gatsby-edge/src/pages/index.js:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 |
3 | const IndexPage = () => {
4 | return (
5 | Hello {process.env.GATSBY_HELLO}.
6 | )
7 | }
8 |
9 | export default IndexPage
10 |
--------------------------------------------------------------------------------
/nestjs/heroku/nest-cli.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/nest-cli",
3 | "collection": "@nestjs/schematics",
4 | "sourceRoot": "src",
5 | "compilerOptions": {
6 | "deleteOutDir": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nodejs/vercel/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .vercel
3 |
4 | .env*
5 | .flaskenv*
6 | !.env.project
7 | !.env.vault
8 |
9 | # Added for example purposes only! You should not commit your .env file to code.
10 | !.env
11 |
--------------------------------------------------------------------------------
/pm2/heroku/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "start": "pm2-runtime start ecosystem.config.js --env production"
4 | },
5 | "dependencies": {
6 | "dotenv": "^16.3.1",
7 | "pm2": "^5.3.0"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/rails/kamal/.env:
--------------------------------------------------------------------------------
1 | KAMAL_REGISTRY_PASSWORD=your-docker-registry-password
2 | RAILS_MASTER_KEY=0910c8030ec6c55ae954db3dee6b6187
3 | HELLO=World
4 | DOTENV_KEY="dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=production"
5 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-json-escaped/.env:
--------------------------------------------------------------------------------
1 | CONFIG_JSON='{"fielda":"testvalue=","fieldb":false,"fieldc":null,"fieldd":{"nested":"true"}}'
2 | CONFIG_JSON=`{"fielda":"testvalue=","fieldb":false,"fieldc":null,"fieldd":{"nested":"true"}}`
3 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-override/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-nodejs-override
2 |
3 | Demonstrates using override feature with dotenv.
4 |
5 | ## Usage
6 |
7 | ```
8 | npm install
9 | NAME=Scott node index.js
10 | ```
11 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-10-28/secret.js:
--------------------------------------------------------------------------------
1 | var dotenv = require('dotenv')
2 | var dotenvExpand = require('dotenv-expand')
3 | var myEnv = dotenv.config()
4 | dotenvExpand.expand(myEnv)
5 |
6 | console.log(`The secret is ${process.env.SECRET}`)
7 |
--------------------------------------------------------------------------------
/gatsby/gatsby-edge/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .cache/
3 | public
4 |
5 | .env*
6 | .flaskenv*
7 | !.env.project
8 | !.env.vault
9 |
10 | # for example purposes only. don't commit your real .env file to code.
11 | !.env
12 |
--------------------------------------------------------------------------------
/nextjs/github-actions/pages/index.tsx:
--------------------------------------------------------------------------------
1 | import Link from 'next/link'
2 |
3 | export default function IndexPage() {
4 | return (
5 |
6 | Hello {process.env.NEXT_PUBLIC_HELLO}.
7 |
8 | )
9 | }
10 |
--------------------------------------------------------------------------------
/nuxtjs/edgio/plugins/edgio-service-worker.client.ts:
--------------------------------------------------------------------------------
1 | import install from '@edgio/prefetch/window/install'
2 |
3 | export default defineNuxtPlugin(nuxtApp => {
4 | nuxtApp.hook('app:mounted', () => {
5 | install()
6 | })
7 | })
8 |
--------------------------------------------------------------------------------
/quickstart/sinatra-hello-world/Gemfile:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | source "https://rubygems.org"
4 |
5 | # gem "rails"
6 |
7 | gem "sinatra", "~> 3.0"
8 | gem "puma", "~> 6.3"
9 | gem "dotenv-vault", "~> 0.10.1"
10 |
--------------------------------------------------------------------------------
/usage/dotenv-custom-target/index.js:
--------------------------------------------------------------------------------
1 | const customTarget = {}
2 |
3 | require('dotenv').config({ processEnv: customTarget })
4 |
5 | console.log('customTarget', customTarget.HELLO)
6 | console.log('process.env', process.env.HELLO)
7 |
--------------------------------------------------------------------------------
/usage/dotenv-cypress-typescript/cypress/fixtures/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Using fixtures to represent data",
3 | "email": "hello@cypress.io",
4 | "body": "Fixtures are a great way to mock data for responses to routes"
5 | }
6 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-json/.env:
--------------------------------------------------------------------------------
1 | JSON=`{
2 | "url": "http://USxkrn19jZhcEqYhoRY7u1nc:c8863538-30c3-47dd-8eb0-bc1110d861a2@tntjwgn6wiu.SANDBOX.verygoodproxy.com:8080",
3 | "cert": "-----BEGIN CERTIFICATE-----\nMIID2..."
4 | }`
5 |
--------------------------------------------------------------------------------
/quickstart/flask-hello-world/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | __pycache__
8 |
9 | # for example purposes only. you should not be committing your real .env file to code
10 | !.env
11 |
--------------------------------------------------------------------------------
/quickstart/php-hello-world/index.php:
--------------------------------------------------------------------------------
1 | safeLoad();
7 |
8 | echo "Hello {$_ENV['HELLO']}";
9 |
--------------------------------------------------------------------------------
/rails/fly/app/javascript/controllers/hello_controller.js:
--------------------------------------------------------------------------------
1 | import { Controller } from "@hotwired/stimulus"
2 |
3 | export default class extends Controller {
4 | connect() {
5 | this.element.textContent = "Hello World!"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/rails/kamal/app/javascript/controllers/hello_controller.js:
--------------------------------------------------------------------------------
1 | import { Controller } from "@hotwired/stimulus"
2 |
3 | export default class extends Controller {
4 | connect() {
5 | this.element.textContent = "Hello World!"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/turborepo/vercel/apps/docs/app/page.tsx:
--------------------------------------------------------------------------------
1 | import { Button, Header } from "ui";
2 |
3 | export default function Page() {
4 | return (
5 | <>
6 |
7 |
8 | >
9 | );
10 | }
11 |
--------------------------------------------------------------------------------
/usage/dotenv-cypress-typescript/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-cypress-typescript
2 |
3 | An example of using dotenv with cypress and typescript.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | npx cypress run
10 | ```
11 |
12 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript-parse/index.ts:
--------------------------------------------------------------------------------
1 | import dotenv from 'dotenv'
2 |
3 | const result1 = dotenv.parse('BASIC=basic')
4 | console.log(result1)
5 |
6 | const result2 = dotenv.parse(Buffer.from('BASIC=basic'))
7 | console.log(result2)
8 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-webpack
2 |
3 | An example of using dotenv (dotenv-webpack) with webpack.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | npm run build
10 | open dist/index.html
11 | ```
12 |
--------------------------------------------------------------------------------
/laravel/heroku/tests/TestCase.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Getting Started
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack2/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-webpack2
2 |
3 | An example of writing your own plugin to use dotenv with webpack.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | npm run build
10 | open dist/index.html
11 | ```
12 |
13 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack2/dist/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Getting Started
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/astro/netlify/astro.config.mjs:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'astro/config';
2 |
3 | import netlify from "@astrojs/netlify/functions";
4 |
5 | // https://astro.build/config
6 | export default defineConfig({
7 | output: "server",
8 | adapter: netlify()
9 | });
--------------------------------------------------------------------------------
/nestjs/heroku/test/jest-e2e.json:
--------------------------------------------------------------------------------
1 | {
2 | "moduleFileExtensions": ["js", "json", "ts"],
3 | "rootDir": ".",
4 | "testEnvironment": "node",
5 | "testRegex": ".e2e-spec.ts$",
6 | "transform": {
7 | "^.+\\.(t|j)s$": "ts-jest"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/tests/TestCase.php:
--------------------------------------------------------------------------------
1 |
10 | channel_prefix: fly_production
11 |
--------------------------------------------------------------------------------
/turborepo/vercel/apps/docs/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | // NOTE: This file should not be edited
5 | // see https://nextjs.org/docs/basic-features/typescript for more information.
6 |
--------------------------------------------------------------------------------
/turborepo/vercel/apps/web/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | // NOTE: This file should not be edited
5 | // see https://nextjs.org/docs/basic-features/typescript for more information.
6 |
--------------------------------------------------------------------------------
/usage/dotenv-react-typescript/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-react-typescript
2 |
3 | An example of using dotenv with react and typescript.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | npm start
10 | // edit .env file to see changes
11 | ```
12 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack2/src/index.js:
--------------------------------------------------------------------------------
1 | function component() {
2 | const elem = document.createElement('div')
3 |
4 | elem.innerHTML = `Hello ${process.env.NAME}`
5 |
6 | return elem
7 | }
8 |
9 | document.body.appendChild(component())
10 |
11 |
--------------------------------------------------------------------------------
/angular/vercel/src/main.ts:
--------------------------------------------------------------------------------
1 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2 |
3 | import { AppModule } from './app/app.module';
4 |
5 |
6 | platformBrowserDynamic().bootstrapModule(AppModule)
7 | .catch(err => console.error(err));
8 |
--------------------------------------------------------------------------------
/rails/heroku/config/cable.yml:
--------------------------------------------------------------------------------
1 | development:
2 | adapter: async
3 |
4 | test:
5 | adapter: test
6 |
7 | production:
8 | adapter: redis
9 | url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10 | channel_prefix: heroku_production
11 |
--------------------------------------------------------------------------------
/rails/kamal/config/cable.yml:
--------------------------------------------------------------------------------
1 | development:
2 | adapter: async
3 |
4 | test:
5 | adapter: test
6 |
7 | production:
8 | adapter: redis
9 | url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10 | channel_prefix: kamal_production
11 |
--------------------------------------------------------------------------------
/turborepo/vercel/apps/docs/app/layout.tsx:
--------------------------------------------------------------------------------
1 | export default function RootLayout({
2 | children,
3 | }: {
4 | children: React.ReactNode;
5 | }) {
6 | return (
7 |
8 | {children}
9 |
10 | );
11 | }
12 |
--------------------------------------------------------------------------------
/turborepo/vercel/apps/web/app/layout.tsx:
--------------------------------------------------------------------------------
1 | export default function RootLayout({
2 | children,
3 | }: {
4 | children: React.ReactNode;
5 | }) {
6 | return (
7 |
8 | {children}
9 |
10 | );
11 | }
12 |
--------------------------------------------------------------------------------
/usage/dotenv-nestjs/test/jest-e2e.json:
--------------------------------------------------------------------------------
1 | {
2 | "moduleFileExtensions": ["js", "json", "ts"],
3 | "rootDir": ".",
4 | "testEnvironment": "node",
5 | "testRegex": ".e2e-spec.ts$",
6 | "transform": {
7 | "^.+\\.(t|j)s$": "ts-jest"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/usage/dotenv-supertest/.env.vault:
--------------------------------------------------------------------------------
1 | # .env.vault (generated with npx dotenv-vault local build)
2 | DOTENV_VAULT_DEVELOPMENT="6LRJuQsB292b7BkhEC6MAxCYQ8pSXkjmcF2pTWPQMQnKvoTfr2NpvU/w"
3 | DOTENV_VAULT_TEST="En2byt/jJlGfY2DXlkIDX1tqdCFiW1ee8sRBKj8iZwuWBq7HNXwlDBg="
4 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript/dist/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const dotenv_1 = require("dotenv");
4 | (0, dotenv_1.config)();
5 | console.log(`hi ${process.env.NAME}`);
6 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/usage/dotenv-vault-custom-target/.env.keys:
--------------------------------------------------------------------------------
1 | # DOTENV_KEYs (generated with npx dotenv-vault local build)
2 | DOTENV_KEY_DEVELOPMENT="dotenv://:key_cd9fe909e1adf109873d5117c3f4beda33a9a8006f4eaeb73a2a0d21bab0cbd4@dotenv.local/vault/.env.vault?environment=development"
3 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack3/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1",
4 | "node-polyfill-webpack-plugin": "^2.0.1"
5 | },
6 | "devDependencies": {
7 | "webpack": "^5.84.1",
8 | "webpack-cli": "^5.1.1"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/express/docker-compose/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '3.8'
2 | services:
3 | web:
4 | build: .
5 | command: node index.js
6 | ports:
7 | - "3000:3000"
8 | environment:
9 | NODE_ENV: ${NODE_ENV}
10 | DOTENV_KEY: ${DOTENV_KEY}
11 |
--------------------------------------------------------------------------------
/laravel/heroku/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto eol=lf
2 |
3 | *.blade.php diff=html
4 | *.css diff=css
5 | *.html diff=html
6 | *.md diff=markdown
7 | *.php diff=php
8 |
9 | /.github export-ignore
10 | CHANGELOG.md export-ignore
11 | .styleci.yml export-ignore
12 |
--------------------------------------------------------------------------------
/nodejs/google-cloud-build/cloudbuild.yml:
--------------------------------------------------------------------------------
1 | # cloudbuild.yml
2 | steps:
3 | - name: node
4 | entrypoint: npm
5 | args: ['install']
6 | - name: node
7 | entrypoint: npm
8 | env:
9 | - 'DOTENV_KEY=${_DOTENV_KEY}'
10 | args: ['run', 'build']
11 |
12 |
--------------------------------------------------------------------------------
/rails/fly/Rakefile:
--------------------------------------------------------------------------------
1 | # Add your own tasks in files placed in lib/tasks ending in .rake,
2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3 |
4 | require_relative "config/application"
5 |
6 | Rails.application.load_tasks
7 |
--------------------------------------------------------------------------------
/rails/heroku/Rakefile:
--------------------------------------------------------------------------------
1 | # Add your own tasks in files placed in lib/tasks ending in .rake,
2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3 |
4 | require_relative "config/application"
5 |
6 | Rails.application.load_tasks
7 |
--------------------------------------------------------------------------------
/rails/kamal/Rakefile:
--------------------------------------------------------------------------------
1 | # Add your own tasks in files placed in lib/tasks ending in .rake,
2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3 |
4 | require_relative "config/application"
5 |
6 | Rails.application.load_tasks
7 |
--------------------------------------------------------------------------------
/usage/dotenv-es6-import-pitfall/errorReporter.mjs:
--------------------------------------------------------------------------------
1 | class Client {
2 | constructor(apiKey) {
3 | this.apiKey = apiKey
4 | }
5 |
6 | report(err) {
7 | console.log(this.apiKey, err)
8 | }
9 | }
10 | export default new Client(process.env.API_KEY)
11 |
--------------------------------------------------------------------------------
/usage/dotenv-esm-preload/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-esm-preload
2 |
3 | An example of using dotenv with ESM (ECMAScript Modules) and the preload option.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | node -r dotenv/config index.mjs
10 | ```
11 |
12 |
--------------------------------------------------------------------------------
/usage/dotenv-nestjs/src/main.ts:
--------------------------------------------------------------------------------
1 | import { NestFactory } from '@nestjs/core';
2 | import { AppModule } from './app.module';
3 |
4 | async function bootstrap() {
5 | const app = await NestFactory.create(AppModule);
6 | await app.listen(3000);
7 | }
8 | bootstrap();
9 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript-config/dist/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | const dotenv_1 = require("dotenv");
4 | (0, dotenv_1.config)();
5 | console.log(`hi ${process.env.NAME}`);
6 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/usage/dotenv-typescript/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "build": "tsc"
4 | },
5 | "dependencies": {
6 | "dotenv": "^12.0.0"
7 | },
8 | "devDependencies": {
9 | "@types/node": "^17.0.8",
10 | "typescript": "^4.5.4"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/express/fly/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "dotenv": "^16.3.1",
4 | "express": "^4.18.2"
5 | },
6 | "scripts": {
7 | "start": "node index.js"
8 | },
9 | "devDependencies": {
10 | "@flydotio/dockerfile": "^0.4.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto eol=lf
2 |
3 | *.blade.php diff=html
4 | *.css diff=css
5 | *.html diff=html
6 | *.md diff=markdown
7 | *.php diff=php
8 |
9 | /.github export-ignore
10 | CHANGELOG.md export-ignore
11 | .styleci.yml export-ignore
12 |
--------------------------------------------------------------------------------
/svelte-kit/vercel/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /build
4 | /.svelte-kit
5 | /package
6 | .env
7 | .env.*
8 | !.env.example
9 | vite.config.js.timestamp-*
10 | vite.config.ts.timestamp-*
11 |
12 | .env*
13 | .flaskenv*
14 | !.env.project
15 | !.env.vault
--------------------------------------------------------------------------------
/usage/dotenv-fastify/routes/index.js:
--------------------------------------------------------------------------------
1 | export default async function indexRoutes(server, options) {
2 | server.get("/", async (request, reply) => {
3 | return {
4 | hello: "hello world",
5 | debugLevel: server.config.DEBUG_LEVEL,
6 | };
7 | });
8 | }
9 |
--------------------------------------------------------------------------------
/usage/dotenv-firebase/firestore.rules:
--------------------------------------------------------------------------------
1 | rules_version = '2';
2 | service cloud.firestore {
3 | match /databases/{database}/documents {
4 | match /{document=**} {
5 | allow read, write: if
6 | request.time < timestamp.date(2022, 2, 15);
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/usage/dotenv-multiline/index.rb:
--------------------------------------------------------------------------------
1 | require 'dotenv'
2 | require 'json'
3 | Dotenv.load('.env')
4 |
5 | puts ENV.inspect
6 |
7 | puts ENV['MULTI_SINGLE_AND_DOUBLE_QUOTED']
8 |
9 | parsed = JSON.parse(ENV['MULTI_SINGLE_AND_DOUBLE_QUOTED'])
10 | puts parsed["foo"]
11 |
--------------------------------------------------------------------------------
/nodejs/vercel/vercel.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 2,
3 | "builds": [
4 | {
5 | "src": "index.js",
6 | "use": "@vercel/node"
7 | }
8 | ],
9 | "routes": [
10 | {
11 | "src": "/(.*)",
12 | "dest": "index.js"
13 | }
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/usage/dotenv-firebase/firebase.json:
--------------------------------------------------------------------------------
1 | {
2 | "firestore": {
3 | "rules": "firestore.rules",
4 | "indexes": "firestore.indexes.json"
5 | },
6 | "functions": {
7 | "predeploy": [
8 | "npm --prefix \"$RESOURCE_DIR\" run lint"
9 | ]
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript-config/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "build": "tsc"
4 | },
5 | "dependencies": {
6 | "dotenv": "^13.0.0"
7 | },
8 | "devDependencies": {
9 | "@types/node": "^17.0.8",
10 | "typescript": "^4.5.4"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript-parse/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "build": "tsc"
4 | },
5 | "dependencies": {
6 | "dotenv": "^14.0.0"
7 | },
8 | "devDependencies": {
9 | "@types/node": "^17.0.8",
10 | "typescript": "^4.5.4"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-typescript
2 |
3 | An example of using dotenv with typescript.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | npx ts-node index.ts // compiles and runs in memory
10 | // edit .env file to see changes
11 | ```
12 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-typescript-custom-target/.env.keys:
--------------------------------------------------------------------------------
1 | # DOTENV_KEYs (generated with npx dotenv-vault local build)
2 | DOTENV_KEY_DEVELOPMENT="dotenv://:key_cd9fe909e1adf109873d5117c3f4beda33a9a8006f4eaeb73a2a0d21bab0cbd4@dotenv.local/vault/.env.vault?environment=development"
3 |
--------------------------------------------------------------------------------
/fastapi/heroku/main.py:
--------------------------------------------------------------------------------
1 | from dotenv_vault import load_dotenv
2 | load_dotenv()
3 |
4 | import os
5 | from fastapi import FastAPI
6 |
7 | app = FastAPI()
8 |
9 | @app.get("/")
10 | def read_root():
11 | hello = os.getenv("HELLO")
12 | return {"Hello": hello}
13 |
14 |
--------------------------------------------------------------------------------
/nestjs/heroku/src/main.ts:
--------------------------------------------------------------------------------
1 | import { NestFactory } from '@nestjs/core';
2 | import { AppModule } from './app.module';
3 |
4 | async function bootstrap() {
5 | const app = await NestFactory.create(AppModule);
6 | await app.listen(process.env.PORT || 3000);
7 | }
8 | bootstrap();
9 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto eol=lf
2 |
3 | *.blade.php diff=html
4 | *.css diff=css
5 | *.html diff=html
6 | *.md diff=markdown
7 | *.php diff=php
8 |
9 | /.github export-ignore
10 | CHANGELOG.md export-ignore
11 | .styleci.yml export-ignore
12 |
--------------------------------------------------------------------------------
/turborepo/vercel/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | // This tells ESLint to load the config from the package `eslint-config-custom`
4 | extends: ["custom"],
5 | settings: {
6 | next: {
7 | rootDir: ["apps/*/"],
8 | },
9 | },
10 | };
11 |
--------------------------------------------------------------------------------
/turborepo/vercel/apps/docs/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "tsconfig/nextjs.json",
3 | "compilerOptions": {
4 | "plugins": [{ "name": "next" }]
5 | },
6 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
7 | "exclude": ["node_modules"]
8 | }
9 |
--------------------------------------------------------------------------------
/turborepo/vercel/apps/web/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "tsconfig/nextjs.json",
3 | "compilerOptions": {
4 | "plugins": [{ "name": "next" }]
5 | },
6 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
7 | "exclude": ["node_modules"]
8 | }
9 |
--------------------------------------------------------------------------------
/express/vercel/vercel.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 2,
3 | "builds": [
4 | {
5 | "src": "index.js",
6 | "use": "@vercel/node"
7 | }
8 | ],
9 | "routes": [
10 | {
11 | "src": "/(.*)",
12 | "dest": "index.js"
13 | }
14 | ]
15 | }
16 |
17 |
--------------------------------------------------------------------------------
/nodejs/aws-lambda/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config()
2 | // console.log(process.env) // remove this after you've confirmed it is working
3 |
4 | exports.handler = function(event, context, callback) {
5 | console.log(`Hello ${process.env.HELLO}.`)
6 |
7 | callback(null, event)
8 | }
9 |
--------------------------------------------------------------------------------
/quickstart/rust-hello-world/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "rust-hello-world"
3 | version = "0.1.0"
4 | edition = "2021"
5 |
6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7 |
8 | [dependencies]
9 | dotenv-vault = "0.1.1"
10 |
--------------------------------------------------------------------------------
/astro/netlify/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "command": "./node_modules/.bin/astro dev",
6 | "name": "Development server",
7 | "request": "launch",
8 | "type": "node-terminal"
9 | }
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/quickstart/flask-hello-world/index.py:
--------------------------------------------------------------------------------
1 | import os
2 |
3 | from dotenv_vault import load_dotenv
4 | load_dotenv()
5 |
6 | from flask import Flask
7 |
8 | app = Flask(__name__)
9 |
10 | @app.route('/')
11 | def hello():
12 | hello = os.getenv("HELLO")
13 | return f"Hello {hello}"
14 |
--------------------------------------------------------------------------------
/usage/dotenv-react/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/dotenv-blog/2023-10-24/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .env*
3 | .flaskenv*
4 | !.env.project
5 | !.env.vault
6 |
7 | # FOR EXAMPLE PURPOSES ONLY. NEVER commit your keys to code.
8 | !.env.keys
9 |
10 | # FOR EXAMPLE PURPOSES ONLY. NEVER commit your .env files to code.
11 | !.env.production
12 | !.env
13 |
--------------------------------------------------------------------------------
/rocket-rs/heroku/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "yourapp"
3 | version = "0.1.0"
4 | edition = "2021"
5 |
6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7 |
8 | [dependencies]
9 | dotenv-vault = "0.1.1"
10 | rocket = "0.4.11"
11 |
12 |
--------------------------------------------------------------------------------
/usage/dotenv-firebase/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-firebase
2 |
3 | WARNING: work in progress. not yet functional.
4 |
5 | An example firebase application using dotenv.
6 |
7 | ## Reproduce
8 |
9 | ```
10 | npm install -g firebase-tools
11 | npm install
12 | firebase login
13 | ```
14 |
--------------------------------------------------------------------------------
/usage/dotenv-firebase/functions/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: {
4 | es6: true,
5 | node: true,
6 | },
7 | extends: [
8 | "eslint:recommended",
9 | "google",
10 | ],
11 | rules: {
12 | quotes: ["error", "double"],
13 | },
14 | };
15 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript-parse/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-typescript-parse
2 |
3 | An example of using dotenv.parse with typescript.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | npx ts-node index.ts // compiles and runs in memory
10 | // edit .env file to see changes
11 | ```
12 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack/src/index.js:
--------------------------------------------------------------------------------
1 | import _ from 'lodash'
2 |
3 | function component() {
4 | const elem = document.createElement('div')
5 |
6 | elem.innerHTML = _.join(['Hello', process.env.NAME], ' ')
7 |
8 | return elem
9 | }
10 |
11 | document.body.appendChild(component())
12 |
--------------------------------------------------------------------------------
/usage/dotenv-react-typescript/src/setupTests.ts:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript-config/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-typescript-config
2 |
3 | An example of using dotenv/config with typescript.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | npx ts-node index.ts // compiles and runs in memory
10 | // edit .env file to see changes
11 | ```
12 |
--------------------------------------------------------------------------------
/fastapi/heroku/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .env
3 | *.pyc
4 | *.pyo
5 | env/
6 | venv/
7 | .venv/
8 | env*
9 | dist/
10 | build/
11 |
12 |
13 | .env*
14 | .flaskenv*
15 | !.env.project
16 | !.env.vault
17 |
18 | # for example purposes ONLY. do not commit your .env file to source code
19 | !.env
20 |
--------------------------------------------------------------------------------
/flask/heroku/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .env
3 | .flaskenv
4 | *.pyc
5 | *.pyo
6 | env/
7 | venv/
8 | .venv/
9 | env*
10 | dist/
11 | build/
12 |
13 | # for example purposes only. you shouldn't commit your .env file to code
14 | !.env
15 |
16 | .env*
17 | .flaskenv*
18 | !.env.project
19 | !.env.vault
--------------------------------------------------------------------------------
/nuxtjs/vercel/nuxt.config.ts:
--------------------------------------------------------------------------------
1 | // https://nuxt.com/docs/api/configuration/nuxt-config
2 | require('dotenv').config()
3 |
4 | export default defineNuxtConfig({
5 | runtimeConfig: {
6 | public: {
7 | HELLO: process.env.HELLO
8 | }
9 | },
10 | devtools: { enabled: true }
11 | })
12 |
--------------------------------------------------------------------------------
/usage/dotenv-react/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render();
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/usage/dotenv-supertest/app.js:
--------------------------------------------------------------------------------
1 | const express = require('express')
2 | const dotenv = require('dotenv')
3 |
4 | dotenv.config()
5 |
6 | const app = express()
7 |
8 | app.get('/', function(req, res) {
9 | res.status(200).send(`Hello ${process.env.HELLO}`)
10 | })
11 |
12 | module.exports = app
13 |
--------------------------------------------------------------------------------
/nuxtjs/edgio/nuxt.config.ts:
--------------------------------------------------------------------------------
1 | // https://nuxt.com/docs/api/configuration/nuxt-config
2 | require("dotenv").config()
3 |
4 | export default defineNuxtConfig({
5 | runtimeConfig: {
6 | public: {
7 | HELLO: process.env.HELLO
8 | }
9 | },
10 | devtools: { enabled: true }
11 | })
12 |
13 |
--------------------------------------------------------------------------------
/rails/fly/app/javascript/controllers/application.js:
--------------------------------------------------------------------------------
1 | import { Application } from "@hotwired/stimulus"
2 |
3 | const application = Application.start()
4 |
5 | // Configure Stimulus development experience
6 | application.debug = false
7 | window.Stimulus = application
8 |
9 | export { application }
10 |
--------------------------------------------------------------------------------
/rails/heroku/app/javascript/controllers/application.js:
--------------------------------------------------------------------------------
1 | import { Application } from "@hotwired/stimulus"
2 |
3 | const application = Application.start()
4 |
5 | // Configure Stimulus development experience
6 | application.debug = false
7 | window.Stimulus = application
8 |
9 | export { application }
10 |
--------------------------------------------------------------------------------
/rails/kamal/app/javascript/controllers/application.js:
--------------------------------------------------------------------------------
1 | import { Application } from "@hotwired/stimulus"
2 |
3 | const application = Application.start()
4 |
5 | // Configure Stimulus development experience
6 | application.debug = false
7 | window.Stimulus = application
8 |
9 | export { application }
10 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript-custom-target/index.ts:
--------------------------------------------------------------------------------
1 | import dotenv from "dotenv"
2 |
3 | const processEnv: { [key: string]: any } = {}
4 |
5 | dotenv.config({ processEnv })
6 |
7 | console.log('processEnv', processEnv.HELLO) // Universe
8 | console.log('process.env', process.env.HELLO) // undefined (as intentioned)
9 |
--------------------------------------------------------------------------------
/usage/dotenv-vault-yarn-typescript/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-vault-yarn-typescript
2 |
3 | An example of using dotenv-vault with typescript and yarn.
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | yarn install
9 | npx ts-node index.ts // compiles and runs in memory
10 | // edit .env file to see changes
11 | ```
12 |
--------------------------------------------------------------------------------
/ruby/circleci/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | dotenv (2.8.1)
5 | dotenv-vault (0.10.1)
6 | dotenv
7 | lockbox
8 | lockbox (1.3.0)
9 |
10 | PLATFORMS
11 | ruby
12 |
13 | DEPENDENCIES
14 | dotenv-vault (~> 0.10.1)
15 |
16 | BUNDLED WITH
17 | 2.4.5
18 |
--------------------------------------------------------------------------------
/nuxtjs/edgio/sw/service-worker.js:
--------------------------------------------------------------------------------
1 | import { skipWaiting, clientsClaim } from 'workbox-core'
2 | import { precacheAndRoute } from 'workbox-precaching'
3 | import { Prefetcher } from '@edgio/prefetch/sw'
4 |
5 | skipWaiting()
6 | clientsClaim()
7 | precacheAndRoute(self.__WB_MANIFEST || [])
8 |
9 | new Prefetcher().route()
10 |
--------------------------------------------------------------------------------
/rails/fly/app/jobs/application_job.rb:
--------------------------------------------------------------------------------
1 | class ApplicationJob < ActiveJob::Base
2 | # Automatically retry jobs that encountered a deadlock
3 | # retry_on ActiveRecord::Deadlocked
4 |
5 | # Most jobs are safe to ignore if the underlying records are no longer available
6 | # discard_on ActiveJob::DeserializationError
7 | end
8 |
--------------------------------------------------------------------------------
/rails/fly/app/views/layouts/mailer.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 | <%= yield %>
12 |
13 |
14 |
--------------------------------------------------------------------------------
/rails/heroku/app/jobs/application_job.rb:
--------------------------------------------------------------------------------
1 | class ApplicationJob < ActiveJob::Base
2 | # Automatically retry jobs that encountered a deadlock
3 | # retry_on ActiveRecord::Deadlocked
4 |
5 | # Most jobs are safe to ignore if the underlying records are no longer available
6 | # discard_on ActiveJob::DeserializationError
7 | end
8 |
--------------------------------------------------------------------------------
/rails/kamal/app/jobs/application_job.rb:
--------------------------------------------------------------------------------
1 | class ApplicationJob < ActiveJob::Base
2 | # Automatically retry jobs that encountered a deadlock
3 | # retry_on ActiveRecord::Deadlocked
4 |
5 | # Most jobs are safe to ignore if the underlying records are no longer available
6 | # discard_on ActiveJob::DeserializationError
7 | end
8 |
--------------------------------------------------------------------------------
/rails/kamal/app/views/layouts/mailer.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 | <%= yield %>
12 |
13 |
14 |
--------------------------------------------------------------------------------
/turborepo/vercel/packages/eslint-config-custom/index.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | extends: ["next", "turbo", "prettier"],
3 | rules: {
4 | "@next/next/no-html-link-for-pages": "off",
5 | },
6 | parserOptions: {
7 | babelOptions: {
8 | presets: [require.resolve("next/babel")],
9 | },
10 | },
11 | };
12 |
--------------------------------------------------------------------------------
/laravel/heroku/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "type": "module",
4 | "scripts": {
5 | "dev": "vite",
6 | "build": "vite build"
7 | },
8 | "devDependencies": {
9 | "axios": "^1.1.2",
10 | "laravel-vite-plugin": "^0.8.0",
11 | "vite": "^4.0.0"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/rails/heroku/app/views/layouts/mailer.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 | <%= yield %>
12 |
13 |
14 |
--------------------------------------------------------------------------------
/usage/dotenv-fastify/plugins/env.js:
--------------------------------------------------------------------------------
1 | import * as dotenv from "dotenv";
2 |
3 | export default async function configPlugin(server, options, done) {
4 | try {
5 | const envConfig = dotenv.config();
6 | server.decorate("config", envConfig.parsed);
7 | done();
8 | } catch (err) {
9 | done(err);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require('path')
2 | const Dotenv = require('dotenv-webpack')
3 |
4 | module.exports = {
5 | entry: './src/index.js',
6 | output: {
7 | filename: 'main.js',
8 | path: path.resolve(__dirname, 'dist')
9 | },
10 | plugins: [
11 | new Dotenv()
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/laravel/heroku/vite.config.js:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite';
2 | import laravel from 'laravel-vite-plugin';
3 |
4 | export default defineConfig({
5 | plugins: [
6 | laravel({
7 | input: ['resources/css/app.css', 'resources/js/app.js'],
8 | refresh: true,
9 | }),
10 | ],
11 | });
12 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "type": "module",
4 | "scripts": {
5 | "dev": "vite",
6 | "build": "vite build"
7 | },
8 | "devDependencies": {
9 | "axios": "^1.1.2",
10 | "laravel-vite-plugin": "^0.8.0",
11 | "vite": "^4.0.0"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/vite/vercel/src/counter.ts:
--------------------------------------------------------------------------------
1 | export function setupCounter(element: HTMLButtonElement) {
2 | let counter = 0
3 | const setCounter = (count: number) => {
4 | counter = count
5 | element.innerHTML = `count is ${counter}`
6 | }
7 | element.addEventListener('click', () => setCounter(counter + 1))
8 | setCounter(0)
9 | }
10 |
--------------------------------------------------------------------------------
/angular/vercel/src/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-root',
5 | templateUrl: './app.component.html',
6 | styleUrls: ['./app.component.css']
7 | })
8 | export class AppComponent {
9 | title = 'vercel';
10 | NG_APP_HELLO = process.env['NG_APP_HELLO']
11 | }
12 |
--------------------------------------------------------------------------------
/flask/heroku/index.py:
--------------------------------------------------------------------------------
1 | from dotenv_vault import load_dotenv
2 | load_dotenv()
3 |
4 | import os
5 | from flask import Flask
6 |
7 | app = Flask(__name__)
8 |
9 | from dotenv_vault import load_dotenv
10 | load_dotenv()
11 |
12 | @app.route('/')
13 | def hello():
14 | hello = os.getenv("HELLO")
15 | return f"Hello {hello}"
16 |
17 |
--------------------------------------------------------------------------------
/turborepo/vercel/packages/tsconfig/react-library.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/tsconfig",
3 | "display": "React Library",
4 | "extends": "./base.json",
5 | "compilerOptions": {
6 | "jsx": "react-jsx",
7 | "lib": ["ES2015", "DOM"],
8 | "module": "ESNext",
9 | "target": "es6"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/usage/dotenv-nodejs-json-escaped/index.js:
--------------------------------------------------------------------------------
1 | const result = require('dotenv').config()
2 |
3 | console.log(JSON.parse(process.env.CONFIG_JSON))
4 |
5 | const jsonString = '{"fielda":"testvalue=","fieldb":false,"fieldc":null,"fieldd":{"nested":"true"}}'
6 | console.log(JSON.parse(jsonString))
7 |
8 | console.log(JSON.stringify({ "hi": "there" }))
9 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/vite.config.js:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite';
2 | import laravel from 'laravel-vite-plugin';
3 |
4 | export default defineConfig({
5 | plugins: [
6 | laravel({
7 | input: ['resources/css/app.css', 'resources/js/app.js'],
8 | refresh: true,
9 | }),
10 | ],
11 | });
12 |
--------------------------------------------------------------------------------
/nodejs/buddy/buddy.yml:
--------------------------------------------------------------------------------
1 | - pipeline: "Build"
2 | on: "EVENT"
3 | events:
4 | - type: "PUSH"
5 | resources: "DEFAULT"
6 | actions:
7 | - action: "build"
8 | type: "BUILD"
9 | docker_image_name: "library/node"
10 | docker_image_tag: "16"
11 | execute_commands:
12 | - npm install
13 | - npm run build
14 |
15 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "type": "module",
4 | "scripts": {
5 | "dev": "vite",
6 | "build": "vite build"
7 | },
8 | "devDependencies": {
9 | "axios": "^1.1.2",
10 | "laravel-vite-plugin": "^0.7.5",
11 | "vite": "^4.0.0"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/usage/dotenv-supertest/test.js:
--------------------------------------------------------------------------------
1 | const request = require('supertest')
2 | const assert = require('assert')
3 |
4 | const app = require('./app.js')
5 |
6 | request(app)
7 | .get('/')
8 | .expect(200, 'Hello Test')
9 | .end(function(err, res) {
10 | if (err) throw err;
11 |
12 | console.log('Tests passing 🟢.')
13 | })
14 |
15 |
--------------------------------------------------------------------------------
/usage/dotenv-typescript-custom-target/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-typescript-custom-target
2 |
3 | An example of using dotenv with typescript and setting a custom processEnv (your own object)
4 |
5 | ## USAGE
6 |
7 | ```bash
8 | npm install
9 | npx ts-node index.ts // compiles and runs in memory
10 | // edit .env file to see changes
11 | ```
12 |
--------------------------------------------------------------------------------
/angular/vercel/tsconfig.app.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "extends": "./tsconfig.json",
4 | "compilerOptions": {
5 | "outDir": "./out-tsc/app",
6 | "types": []
7 | },
8 | "files": [
9 | "src/main.ts"
10 | ],
11 | "include": [
12 | "src/**/*.d.ts"
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/laravel/heroku/tests/Unit/ExampleTest.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/vite.config.js:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite';
2 | import laravel from 'laravel-vite-plugin';
3 |
4 | export default defineConfig({
5 | plugins: [
6 | laravel({
7 | input: ['resources/css/app.css', 'resources/js/app.js'],
8 | refresh: true,
9 | }),
10 | ],
11 | });
12 |
--------------------------------------------------------------------------------
/ruby/circleci/.circleci/config.yml:
--------------------------------------------------------------------------------
1 | # .circleci/config.yml
2 | version: 2.1
3 | orbs:
4 | ruby: circleci/ruby@2.1.0
5 | jobs:
6 | build:
7 | docker:
8 | - image: cimg/ruby:2.7.3
9 | steps:
10 | - checkout
11 | - ruby/install-deps
12 | - run:
13 | name: Ruby build
14 | command: ruby build.rb
15 |
16 |
--------------------------------------------------------------------------------
/usage/dotenv-es6-import-pitfall/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-es6-import-pitfall
2 |
3 | An example of an ES6 import pitfall. See `invalid.mjs` and then `valid.mjs`.
4 |
5 | Note how invalid.mjs does not correctly log the API_KEY environment variable.
6 |
7 | ## USAGE
8 |
9 | ```bash
10 | npm install
11 | node invalid.mjs
12 | node valid.mjs
13 | ```
14 |
--------------------------------------------------------------------------------
/usage/dotenv-express/index.mjs:
--------------------------------------------------------------------------------
1 | import dotenv from 'dotenv'
2 | dotenv.config()
3 |
4 | import express from 'express'
5 | const app = express()
6 |
7 | app.get('/', function (req, res) {
8 | res.send(`Hello ${process.env.NAME}`)
9 | })
10 |
11 | app.listen(3000, () => {
12 | console.log(`Example app listening at http://localhost:3000`)
13 | })
14 |
--------------------------------------------------------------------------------
/usage/dotenv-react-typescript/src/App.test.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { render, screen } from '@testing-library/react';
3 | import App from './App';
4 |
5 | test('renders learn react link', () => {
6 | render();
7 | const linkElement = screen.getByText(/learn react/i);
8 | expect(linkElement).toBeInTheDocument();
9 | });
10 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/.gitignore:
--------------------------------------------------------------------------------
1 | /.phpunit.cache
2 | /node_modules
3 | /public/build
4 | /public/hot
5 | /public/storage
6 | /storage/*.key
7 | /vendor
8 | .env
9 | .env.backup
10 | .env.production
11 | .phpunit.result.cache
12 | Homestead.json
13 | Homestead.yaml
14 | auth.json
15 | npm-debug.log
16 | yarn-error.log
17 | /.fleet
18 | /.idea
19 | /.vscode
20 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/tests/Unit/ExampleTest.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/nestjs/heroku/src/app.controller.ts:
--------------------------------------------------------------------------------
1 | import { Controller, Get } from '@nestjs/common';
2 | import { AppService } from './app.service';
3 |
4 | @Controller()
5 | export class AppController {
6 | constructor(private readonly appService: AppService) {}
7 |
8 | @Get()
9 | getHello(): string {
10 | return this.appService.getHello();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/turborepo/vercel/packages/ui/turbo/generators/templates/component.hbs:
--------------------------------------------------------------------------------
1 | import * as React from "react";
2 |
3 | interface Props {
4 | children?: React.ReactNode;
5 | }
6 |
7 | export const {{ pascalCase name }} = ({ children }: Props) => {
8 | return (
9 |
10 |
{{ name }}
11 | {children}
12 |
13 | );
14 | };
15 |
--------------------------------------------------------------------------------
/usage/dotenv-cypress-typescript/cypress.config.js:
--------------------------------------------------------------------------------
1 | const { defineConfig } = require("cypress");
2 | require('dotenv').config()
3 |
4 | module.exports = defineConfig({
5 | e2e: {
6 | setupNodeEvents(on, config) {
7 | // implement node event listeners here
8 | },
9 | env: {
10 | HELLO: process.env.HELLO
11 | },
12 | },
13 | });
14 |
--------------------------------------------------------------------------------
/usage/dotenv-es6-import-pitfall/invalid.mjs:
--------------------------------------------------------------------------------
1 | import dotenv from 'dotenv'
2 | dotenv.config() // this will NOT load process.env before errorReporter is loaded.
3 | // ES6 modules are not intuitive like that. see valid.mjs for proper configuration
4 |
5 | import errorReporter from './errorReporter.mjs'
6 |
7 | errorReporter.report(new Error('documented example'))
8 |
--------------------------------------------------------------------------------
/angular/vercel/tsconfig.spec.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "extends": "./tsconfig.json",
4 | "compilerOptions": {
5 | "outDir": "./out-tsc/spec",
6 | "types": [
7 | "jasmine"
8 | ]
9 | },
10 | "include": [
11 | "src/**/*.spec.ts",
12 | "src/**/*.d.ts"
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/gatsby/gatsby-edge/gatsby-config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @type {import('gatsby').GatsbyConfig}
3 | */
4 | require('dotenv').config()
5 | console.log(process.env) // for debugging purposes. remove when ready.
6 |
7 | module.exports = {
8 | siteMetadata: {
9 | title: `gatsby-edge`,
10 | siteUrl: `https://www.yourdomain.tld`,
11 | },
12 | plugins: [],
13 | }
14 |
--------------------------------------------------------------------------------
/laravel/heroku/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
14 | [*.{yml,yaml}]
15 | indent_size = 2
16 |
17 | [docker-compose.yml]
18 | indent_size = 4
19 |
--------------------------------------------------------------------------------
/usage/dotenv-nestjs/src/app.controller.ts:
--------------------------------------------------------------------------------
1 | import { Controller, Get } from '@nestjs/common';
2 | import { AppService } from './app.service';
3 |
4 | @Controller()
5 | export class AppController {
6 | constructor(private readonly appService: AppService) {}
7 |
8 | @Get()
9 | getHello(): string {
10 | return this.appService.getHello();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/angular/vercel/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see https://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.ts]
12 | quote_type = single
13 |
14 | [*.md]
15 | max_line_length = off
16 | trim_trailing_whitespace = false
17 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/tests/Unit/ExampleTest.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/angular/vercel/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Vercel
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
14 | [*.{yml,yaml}]
15 | indent_size = 2
16 |
17 | [docker-compose.yml]
18 | indent_size = 4
19 |
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
14 | [*.{yml,yaml}]
15 | indent_size = 2
16 |
17 | [docker-compose.yml]
18 | indent_size = 4
19 |
--------------------------------------------------------------------------------
/usage/dotenv-multiline/index.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config()
2 |
3 | console.log(process.env)
4 |
5 | console.log(process.env['MULTI_SINGLE_AND_DOUBLE_QUOTED'])
6 |
7 | const parsed = JSON.parse(process.env['MULTI_SINGLE_AND_DOUBLE_QUOTED'])
8 | console.log(parsed)
9 |
10 | //const str = "{\"foo\": \"bar\"}"
11 | //const parsed = JSON.parse(str)
12 | //console.log(parsed)
13 |
--------------------------------------------------------------------------------
/quickstart/express-hello-world/index.js:
--------------------------------------------------------------------------------
1 | // index.js
2 | require('dotenv').config()
3 | const express = require('express')
4 | const app = express()
5 | const port = process.env.PORT || 3000
6 |
7 | app.get('/', (req, res) => {
8 | res.send(`Hello ${process.env.HELLO}`)
9 | })
10 |
11 | app.listen(port, () => {
12 | console.log(`Example app listening on port ${port}`)
13 | })
14 |
--------------------------------------------------------------------------------
/usage/dotenv-yarn/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | dotenv@^16.1.1:
6 | version "16.1.1"
7 | resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.1.1.tgz#9105a6c486ab66076231fbe7cf4ba77131a61d65"
8 | integrity sha512-UGmzIqXU/4b6Vb3R1Vrfd/4vGgVlB+mO+vEixOdfRhLeppkyW2BMhuK7TL8d0el+q9c4lW9qK2wZYhNLFhXYLA==
9 |
--------------------------------------------------------------------------------
/nodejs/circleci/.circleci/config.yml:
--------------------------------------------------------------------------------
1 | # .circleci/config.yml
2 | version: 2.1
3 | orbs:
4 | node: circleci/node@5.0.3
5 | jobs:
6 | build:
7 | docker:
8 | - image: cimg/base:2021.04
9 | steps:
10 | - checkout
11 | - node/install
12 | - node/install-packages
13 | - run:
14 | name: Run build
15 | command: npm run build
16 |
17 |
--------------------------------------------------------------------------------
/rails/fly/config/importmap.rb:
--------------------------------------------------------------------------------
1 | # Pin npm packages by running ./bin/importmap
2 |
3 | pin "application", preload: true
4 | pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
5 | pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
6 | pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
7 | pin_all_from "app/javascript/controllers", under: "controllers"
8 |
--------------------------------------------------------------------------------
/rails/fly/test/channels/application_cable/connection_test.rb:
--------------------------------------------------------------------------------
1 | require "test_helper"
2 |
3 | module ApplicationCable
4 | class ConnectionTest < ActionCable::Connection::TestCase
5 | # test "connects with cookies" do
6 | # cookies.signed[:user_id] = 42
7 | #
8 | # connect
9 | #
10 | # assert_equal connection.user_id, "42"
11 | # end
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/rails/heroku/config/importmap.rb:
--------------------------------------------------------------------------------
1 | # Pin npm packages by running ./bin/importmap
2 |
3 | pin "application", preload: true
4 | pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
5 | pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
6 | pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
7 | pin_all_from "app/javascript/controllers", under: "controllers"
8 |
--------------------------------------------------------------------------------
/rails/heroku/test/channels/application_cable/connection_test.rb:
--------------------------------------------------------------------------------
1 | require "test_helper"
2 |
3 | module ApplicationCable
4 | class ConnectionTest < ActionCable::Connection::TestCase
5 | # test "connects with cookies" do
6 | # cookies.signed[:user_id] = 42
7 | #
8 | # connect
9 | #
10 | # assert_equal connection.user_id, "42"
11 | # end
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/rails/kamal/config/importmap.rb:
--------------------------------------------------------------------------------
1 | # Pin npm packages by running ./bin/importmap
2 |
3 | pin "application", preload: true
4 | pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
5 | pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
6 | pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
7 | pin_all_from "app/javascript/controllers", under: "controllers"
8 |
--------------------------------------------------------------------------------
/rails/kamal/test/channels/application_cable/connection_test.rb:
--------------------------------------------------------------------------------
1 | require "test_helper"
2 |
3 | module ApplicationCable
4 | class ConnectionTest < ActionCable::Connection::TestCase
5 | # test "connects with cookies" do
6 | # cookies.signed[:user_id] = 42
7 | #
8 | # connect
9 | #
10 | # assert_equal connection.user_id, "42"
11 | # end
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/serverless/aws-lambda/serverless.yml:
--------------------------------------------------------------------------------
1 | org: dotenv
2 | app: aws-lambda
3 | service: aws-lambda
4 | frameworkVersion: '3'
5 |
6 | provider:
7 | name: aws
8 | runtime: nodejs18.x
9 | environment:
10 | DOTENV_KEY: ${param:DOTENV_KEY}
11 |
12 | functions:
13 | function1:
14 | handler: index.handler
15 |
16 | package:
17 | patterns:
18 | - '!.env*'
19 | - '.env.vault'
20 |
--------------------------------------------------------------------------------
/usage/dotenv-supertest/.env.keys:
--------------------------------------------------------------------------------
1 | # DOTENV_KEYs (generated with npx dotenv-vault local build)
2 | DOTENV_KEY_DEVELOPMENT="dotenv://:key_f9d2ae0d76e71de54f57bbdf09fb8f23f3e95c3d6edc473a4f7babf6a6135bea@dotenv.local/vault/.env.vault?environment=development"
3 | DOTENV_KEY_TEST="dotenv://:key_6253826957f1cb2b4d5a1bbc0dc33ffeb6ccfb573cd3df408daab4a796b41afa@dotenv.local/vault/.env.vault?environment=test"
4 |
--------------------------------------------------------------------------------
/laravel/heroku/app/Http/Controllers/Controller.php:
--------------------------------------------------------------------------------
1 |
4 | * Copyright OpenJS Foundation and other contributors
5 | * Released under MIT license
6 | * Based on Underscore.js 1.8.3
7 | * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8 | */
9 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack3/README.md:
--------------------------------------------------------------------------------
1 | # examples/dotenv-webpack3
2 |
3 | ```
4 | npm install webpack --save-dev
5 | npm install webpack-cli --save-dev
6 | npm install dotenv --save
7 | npm install node-polyfill-webpack-plugin --save
8 | npx webpack
9 | node dist/bundle.js
10 | ```
11 |
12 | Note: Make sure you see `webpack.config.js` to understand how these browser polyfills are hooked into webpack.
13 |
--------------------------------------------------------------------------------
/usage/dotenv-webpack3/dist/bundle.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * The buffer module from node.js, for the browser.
3 | *
4 | * @author Feross Aboukhadijeh
5 | * @license MIT
6 | */
7 |
8 | /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */
9 |
10 | /*! safe-buffer. MIT License. Feross Aboukhadijeh */
11 |
--------------------------------------------------------------------------------
/laravel/laravel-forge/app/Http/Controllers/Controller.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | %sveltekit.head%
8 |
9 |
10 | %sveltekit.body%
11 |
12 |
13 |
--------------------------------------------------------------------------------
/laravel/heroku/.gitignore:
--------------------------------------------------------------------------------
1 | /.phpunit.cache
2 | /node_modules
3 | /public/build
4 | /public/hot
5 | /public/storage
6 | /storage/*.key
7 | /vendor
8 | .env
9 | .env.backup
10 | .env.production
11 | .phpunit.result.cache
12 | Homestead.json
13 | Homestead.yaml
14 | auth.json
15 | npm-debug.log
16 | yarn-error.log
17 | /.fleet
18 | /.idea
19 | /.vscode
20 |
21 | .env*
22 | .flaskenv*
23 | !.env.project
24 | !.env.vault
--------------------------------------------------------------------------------
/quickstart/laravel-hello-world/app/Http/Controllers/Controller.php:
--------------------------------------------------------------------------------
1 |