From d3567065e8c07372254436f0f9eb055823d22710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Tue, 9 Nov 2021 08:57:17 +0800 Subject: [PATCH] chore: add HOST field --- package.json | 1 + types/global.d.ts | 2 ++ 2 files changed, 3 insertions(+) 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 } }