1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-24 08:32:23 +02:00

env default to production

This commit is contained in:
LouisLam 2021-07-19 23:06:42 +08:00
parent 058032a26a
commit 77af41bfff

View File

@ -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 = ""