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