require("dotenv-extended").load({ errorOnMissing: true });
const server = require("./app");

server.listen(process.env.PORT, function() {
	console.log(`Listening on port ${process.env.PORT}...`);
});

require("dotenv-extended").load({ errorOnMissing: true });
const server = require("./app");

server.listen(process.env.PORT, () => {
	console.log(`Listening on port ${process.env.PORT}...`);
});

change to arrow function