Integrates Dotenv into Middleman
gem 'middleman-dotenv', '~> 2.0'Open your config.rb and add the following right at the top of the file
# Uses .env in the root of the project
activate :dotenv# Specify environment specific .env files
configure :development do
activate :dotenv, env: '.env.development'
end
configure :build do
activate :dotenv, env: '.env.build'
endThis library aims to support and is tested against the following Ruby implementations: