Live video on the AT Protocol
at next 30 lines 1.1 kB view raw
1export default function getEnv() { 2 let updateBaseUrl = "https://stream.place"; 3 if (process.env["AQD_UPDATE_BASE_URL"]) { 4 updateBaseUrl = process.env["AQD_UPDATE_BASE_URL"]; 5 } 6 const isDev = process.env["WEBPACK_SERVE"] === "true"; 7 if (!isDev) { 8 return { 9 isDev: false, 10 skipNode: false, 11 nodeFrontend: true, 12 updateBaseUrl, 13 }; 14 } 15 return { 16 isDev: process.env["WEBPACK_SERVE"] === "true", 17 skipNode: process.env["AQD_SKIP_NODE"] !== "false", 18 nodeFrontend: process.env["AQD_NODE_FRONTEND"] === "true", 19 noUpdate: process.env["AQD_NO_UPDATE"] === "true", 20 updateBaseUrl, 21 }; 22} 23 24// This allows TypeScript to pick up the magic constants that's auto-generated by Forge's Webpack 25// plugin that tells the Electron app where to look for the Webpack-bundled app code (depending on 26// whether you're running in development or production). 27declare const MAIN_WINDOW_WEBPACK_ENTRY: string; 28declare const MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY: string; 29 30export { MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY, MAIN_WINDOW_WEBPACK_ENTRY };