Initial commit
This commit is contained in:
14
src/index.ts
Normal file
14
src/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import express from "express";
|
||||
import router from "./router";
|
||||
import { env } from "./utils/env";
|
||||
|
||||
const app = express();
|
||||
|
||||
app.set("trust proxy", true);
|
||||
|
||||
// ⚠ Do NOT use express.json() globally for streaming proxy
|
||||
app.use(router);
|
||||
|
||||
app.listen(parseInt(env.PORT), () => {
|
||||
console.log(`Server running on port ${env.PORT}`);
|
||||
});
|
||||
Reference in New Issue
Block a user