From 1b9f9293bfc06dc4a5eaf8d8bd2fd558d9a268bd Mon Sep 17 00:00:00 2001 From: oddbyte Date: Mon, 19 Jan 2026 01:41:43 -0500 Subject: [PATCH] add dotenv --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index e23636b..eb18946 100755 --- a/index.js +++ b/index.js @@ -1,4 +1,5 @@ // Import all the things +require('dotenv').config(); const axios = require('axios'); const express = require('express'); const fs = require('node:fs'); @@ -28,7 +29,12 @@ const playlistId = 'PLnlTMS4cxfx3-et_L8APzpEgy_eCf18-U'; /** * Port that nginx proxies to public */ -const port = 48915; +const port = process.env.PORT || 48915; + +/** + * Are we prod or dev + */ +const dev = process.env.DEV || false; // Helper functions I've made to do things and stuff :P