diff --git a/package.json b/package.json index 562f2b5..c4ec790 100644 --- a/package.json +++ b/package.json @@ -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 }, diff --git a/types/global.d.ts b/types/global.d.ts index b89ad68..49dde4e 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -2,7 +2,9 @@ declare namespace NodeJS { interface ProcessEnv { readonly NODE_ENV: 'development' | 'production' + readonly HOST: string readonly PORT: string + readonly PORT_WS: string } }