From 77af41bfffac0ecf4de470d1521fd8de08bf1e33 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Mon, 19 Jul 2021 23:06:42 +0800 Subject: [PATCH] env default to production --- src/mixins/socket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mixins/socket.js b/src/mixins/socket.js index cf7cb121..6ad62724 100644 --- a/src/mixins/socket.js +++ b/src/mixins/socket.js @@ -35,8 +35,8 @@ export default { window.addEventListener('resize', this.onResize); let wsHost; - const env = process.env.NODE_ENV || 'development'; - if (env === "development") { + const env = process.env.NODE_ENV || "production"; + if (env === "development" || localStorage.dev === "dev") { wsHost = ":3001" } else { wsHost = ""