mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-07-02 05:23:13 +08:00
chore: add HOST field
This commit is contained in:
parent
ebf05888da
commit
d3567065e8
@ -77,6 +77,7 @@
|
|||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"//": "Will be auto inject to main,renderer,preload process.env",
|
"//": "Will be auto inject to main,renderer,preload process.env",
|
||||||
|
"HOST": "127.0.0.1",
|
||||||
"PORT": 3344,
|
"PORT": 3344,
|
||||||
"PORT_WS": 3355
|
"PORT_WS": 3355
|
||||||
},
|
},
|
||||||
|
2
types/global.d.ts
vendored
2
types/global.d.ts
vendored
@ -2,7 +2,9 @@
|
|||||||
declare namespace NodeJS {
|
declare namespace NodeJS {
|
||||||
interface ProcessEnv {
|
interface ProcessEnv {
|
||||||
readonly NODE_ENV: 'development' | 'production'
|
readonly NODE_ENV: 'development' | 'production'
|
||||||
|
readonly HOST: string
|
||||||
readonly PORT: string
|
readonly PORT: string
|
||||||
|
readonly PORT_WS: string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user