move dotenv.config() to top o file
This commit is contained in:
parent
9347a3ec6f
commit
6c64d2e6d5
@ -15,9 +15,9 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
You should have received a copy of the GNU Affero General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { closeDatabase, Config, initDatabase, initEvent } from "@spacebar/util";
|
|
||||||
import dotenv from "dotenv";
|
import dotenv from "dotenv";
|
||||||
|
dotenv.config();
|
||||||
|
import { closeDatabase, Config, initDatabase, initEvent } from "@spacebar/util";
|
||||||
import http from "http";
|
import http from "http";
|
||||||
import ws from "ws";
|
import ws from "ws";
|
||||||
import { Connection } from "./events/Connection";
|
import { Connection } from "./events/Connection";
|
||||||
@ -29,7 +29,6 @@ import {
|
|||||||
WRTC_PUBLIC_IP,
|
WRTC_PUBLIC_IP,
|
||||||
} from "./util/MediaServer";
|
} from "./util/MediaServer";
|
||||||
import { green, yellow } from "picocolors";
|
import { green, yellow } from "picocolors";
|
||||||
dotenv.config();
|
|
||||||
|
|
||||||
export class Server {
|
export class Server {
|
||||||
public ws: ws.Server;
|
public ws: ws.Server;
|
||||||
|
|||||||
Reference in New Issue
Block a user