File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ const postcss = require("rollup-plugin-postcss");
1515const dotenv = require ( "dotenv" ) ;
1616dotenv . config ( ) ;
1717
18- const panelPort = process . env . DEV_PANEL_PORT ;
19- const settingsPort = process . env . DEV_SETTINGS_PORT ;
18+ const panelPort = process . env . DEV_PANEL_PORT ?? 3330 ;
19+ const settingsPort = process . env . DEV_SETTINGS_PORT ?? 3331 ;
2020const production = process . env . NODE_ENV !== "dev" ;
2121const watch = process . env . ROLLUP_WATCH === "true" ;
2222const projectRootDir = path . resolve ( __dirname ) ;
Original file line number Diff line number Diff line change 11import { resolve } from "path" ;
22
3- export const panelUrlDev = `http://localhost:${ process . env . DEV_PANEL_PORT } ` ;
4- export const settingsUrlDev = `http://localhost:${ process . env . DEV_SETTINGS_PORT } ` ;
3+ export const panelUrlDev = `http://localhost:${ process . env . DEV_PANEL_PORT ?? 3330 } ` ;
4+ export const settingsUrlDev = `http://localhost:${ process . env . DEV_SETTINGS_PORT ?? 3331 } ` ;
55
66export const panelUrlProd = `file://${ resolve ( __dirname , "../index.html" ) } ` ;
77export const settingsUrlProd = `file://${ resolve ( __dirname , "../settings.html" ) } ` ;
You can’t perform that action at this time.
0 commit comments