diff --git a/scripts/stress/identify.js b/scripts/stress/identify.js
index 2a271bbc..478643f5 100644
--- a/scripts/stress/identify.js
+++ b/scripts/stress/identify.js
@@ -1,6 +1,6 @@
/* eslint-env node */
-require("dotenv").config();
+require("dotenv").config({ quiet: true });
const { OPCODES } = require("../../dist/gateway/util/Constants.js");
const WebSocket = require("ws");
const ENDPOINT = `ws://localhost:3001?v=9&encoding=json`;
diff --git a/scripts/stress/users.js b/scripts/stress/users.js
index 20f9f7c3..053943d0 100644
--- a/scripts/stress/users.js
+++ b/scripts/stress/users.js
@@ -16,7 +16,7 @@
along with this program. If not, see .
*/
-require("dotenv").config();
+require("dotenv").config({ quiet: true });
const fetch = require("node-fetch");
const count = Number(process.env.COUNT) || 50;
const endpoint = process.env.API || "http://localhost:3001";
diff --git a/scripts/syncronise.js b/scripts/syncronise.js
index 34cd0ddd..1f3ed112 100644
--- a/scripts/syncronise.js
+++ b/scripts/syncronise.js
@@ -26,7 +26,7 @@
*/
require("module-alias/register");
-require("dotenv").config();
+require("dotenv").config({ quiet: true });
const { initDatabase } = require("..");
(async () => {
diff --git a/src/api/Server.ts b/src/api/Server.ts
index 3db2e6e2..30797869 100644
--- a/src/api/Server.ts
+++ b/src/api/Server.ts
@@ -126,7 +126,8 @@ export class SpacebarServer extends Server {
// 404 is not an error in express, so this should not be an error middleware
// this is a fine place to put the 404 handler because its after we register the routes
// and since its not an error middleware, our error handler below still works.
- api.use("*", (req: Request, res: Response) => {
+ // Emma [it/its] @ Rory& - the _ is required now, as pillarjs throw an error if you don't pass a param name now
+ api.use("*_", (req: Request, res: Response) => {
res.status(404).json({
message: "404 endpoint not found",
code: 0,
diff --git a/src/api/start.ts b/src/api/start.ts
index ff447f48..b584a9fd 100644
--- a/src/api/start.ts
+++ b/src/api/start.ts
@@ -23,7 +23,7 @@ process.on("unhandledRejection", console.error);
import "missing-native-js-functions";
import { config } from "dotenv";
-config();
+config({ quiet: true });
import { SpacebarServer } from "./Server";
import cluster from "cluster";
import os from "os";
diff --git a/src/bundle/start.ts b/src/bundle/start.ts
index 5c2e28bd..26d62bdd 100644
--- a/src/bundle/start.ts
+++ b/src/bundle/start.ts
@@ -27,7 +27,7 @@ import { red, bold, yellow, cyan, blueBright, redBright } from "picocolors";
import { initStats } from "./stats";
import { config } from "dotenv";
-config();
+config({ quiet: true });
import { execSync } from "child_process";
import { centerString, Logo } from "@spacebar/util";
diff --git a/src/cdn/start.ts b/src/cdn/start.ts
index 21da69e9..f0727eb2 100644
--- a/src/cdn/start.ts
+++ b/src/cdn/start.ts
@@ -18,7 +18,8 @@
import moduleAlias from "module-alias";
moduleAlias(__dirname + "../../../package.json");
-import "dotenv/config";
+import { config } from "dotenv";
+config({ quiet: true});
import { CDNServer } from "./Server";
const server = new CDNServer({ port: Number(process.env.PORT) || 3003 });
diff --git a/src/gateway/Server.ts b/src/gateway/Server.ts
index 79206e4a..d057c720 100644
--- a/src/gateway/Server.ts
+++ b/src/gateway/Server.ts
@@ -18,7 +18,7 @@
import "missing-native-js-functions";
import dotenv from "dotenv";
-dotenv.config();
+dotenv.config({ quiet: true });
import {
closeDatabase,
Config,
diff --git a/src/gateway/start.ts b/src/gateway/start.ts
index b04048e1..8df38edc 100644
--- a/src/gateway/start.ts
+++ b/src/gateway/start.ts
@@ -23,7 +23,7 @@ process.on("unhandledRejection", console.error);
import { Server } from "./Server";
import { config } from "dotenv";
-config();
+config({ quiet: true });
let port = Number(process.env.PORT);
if (isNaN(port)) port = 3002;
diff --git a/src/util/util/Database.ts b/src/util/util/Database.ts
index af0960cd..35a6d09f 100644
--- a/src/util/util/Database.ts
+++ b/src/util/util/Database.ts
@@ -30,7 +30,7 @@ let dbConnection: DataSource | undefined;
// For typeorm cli
if (!process.env) {
- config();
+ config({ quiet: true });
}
const dbConnectionString =
diff --git a/src/webrtc/Server.ts b/src/webrtc/Server.ts
index f43b3725..3a270e68 100644
--- a/src/webrtc/Server.ts
+++ b/src/webrtc/Server.ts
@@ -16,7 +16,7 @@
along with this program. If not, see .
*/
import dotenv from "dotenv";
-dotenv.config();
+dotenv.config({ quiet: true });
import { closeDatabase, Config, initDatabase, initEvent } from "@spacebar/util";
import http from "http";
import ws from "ws";
diff --git a/src/webrtc/start.ts b/src/webrtc/start.ts
index cce1c16c..9d1cf479 100644
--- a/src/webrtc/start.ts
+++ b/src/webrtc/start.ts
@@ -22,7 +22,7 @@ process.on("unhandledRejection", console.error);
import { config } from "dotenv";
import { Server } from "./Server";
-config();
+config({ quiet: true });
const port = Number(process.env.PORT) || 3004;