blob: 4b619c251c5b801f864b3e7feb7fad80ce8c0722 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require("module-alias/register");
import "dotenv/config";
import { CDNServer } from "./Server";
const server = new CDNServer({ port: Number(process.env.PORT) || 3003 });
server
.start()
.then(() => {
console.log("[Server] started on :" + server.options.port);
})
.catch((e) => console.error("[Server] Error starting: ", e));
module.exports = server;
|