add dotenv #1

Merged
oddbyte merged 2 commits from dev into main 2026-01-19 01:47:52 -05:00
Showing only changes of commit 1b9f9293bf - Show all commits

View File

@@ -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