export default function getEnv() { let updateBaseUrl = "https://stream.place"; if (process.env["AQD_UPDATE_BASE_URL"]) { updateBaseUrl = process.env["AQD_UPDATE_BASE_URL"]; } const isDev = process.env["WEBPACK_SERVE"] === "true"; if (!isDev) { return { isDev: false, skipNode: false, nodeFrontend: true, updateBaseUrl, }; } return { isDev: process.env["WEBPACK_SERVE"] === "true", skipNode: process.env["AQD_SKIP_NODE"] !== "false", nodeFrontend: process.env["AQD_NODE_FRONTEND"] === "true", noUpdate: process.env["AQD_NO_UPDATE"] === "true", updateBaseUrl, }; } // This allows TypeScript to pick up the magic constants that's auto-generated by Forge's Webpack // plugin that tells the Electron app where to look for the Webpack-bundled app code (depending on // whether you're running in development or production). declare const MAIN_WINDOW_WEBPACK_ENTRY: string; declare const MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY: string; export { MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY, MAIN_WINDOW_WEBPACK_ENTRY };