chore: add HOST field

This commit is contained in:
草鞋没号 2021-11-09 08:57:17 +08:00
parent ebf05888da
commit d3567065e8
2 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,7 @@
},
"env": {
"//": "Will be auto inject to main,renderer,preload process.env",
"HOST": "127.0.0.1",
"PORT": 3344,
"PORT_WS": 3355
},

2
types/global.d.ts vendored
View File

@ -2,7 +2,9 @@
declare namespace NodeJS {
interface ProcessEnv {
readonly NODE_ENV: 'development' | 'production'
readonly HOST: string
readonly PORT: string
readonly PORT_WS: string
}
}