From c19f73f77fb54cdc03e12baedde7462ee1e8c744 Mon Sep 17 00:00:00 2001 From: Sergei Birukov Date: Wed, 20 Mar 2024 08:31:47 +0300 Subject: [PATCH] Dev --- src/.env | 3 +++ src/.eslintrc.json | 3 ++- src/config.js | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/.env diff --git a/src/.env b/src/.env new file mode 100644 index 00000000..122fe628 --- /dev/null +++ b/src/.env @@ -0,0 +1,3 @@ +WG_HOST=127.0.0.1 +UI_TRAFFIC_STATS=true +UI_CHART_TYPE=2 \ No newline at end of file diff --git a/src/.eslintrc.json b/src/.eslintrc.json index 71881365..c04977dc 100644 --- a/src/.eslintrc.json +++ b/src/.eslintrc.json @@ -6,6 +6,7 @@ "rules": { "consistent-return": "off", "no-shadow": "off", - "max-len": "off" + "max-len": "off", + "linebreak-style": "off" } } diff --git a/src/config.js b/src/config.js index d058ad7d..40b70ddf 100644 --- a/src/config.js +++ b/src/config.js @@ -1,7 +1,6 @@ 'use strict'; const { release } = require('./package.json'); -require('dotenv').config(); module.exports.RELEASE = release; module.exports.PORT = process.env.PORT || '51821';