Skip to content

Instantly share code, notes, and snippets.

@TahaBoulehmi
TahaBoulehmi / heroku.env.js
Created September 16, 2022 10:01
Export Heroku env
// This script lets you export all heroku config vars
// 1) Go to your app settings and reveal config vars
// 2) Open the console and run this code:
// BONUS: You can add this script as a bookmark.
function download(filename, text) {
var element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
element.setAttribute('download', filename);