aggiunto il file src/index.ts
Some checks failed
Deploy to VPS / build (push) Successful in 25s
Deploy to VPS / deploy (push) Failing after 15s

This commit is contained in:
AV77web 2026-07-12 03:13:49 +02:00
parent 2eb778c4a8
commit 5d01cd3437

20
src/index.ts Normal file
View file

@ -0,0 +1,20 @@
import { ExpressAuth } from "@auth/express";
import dotenv from "dotenv";
import express from "express";
dotenv.config();
const app = express();
const port = Number(process.env.PORT ?? 3001);
app.set("trust proxy", 1);
app.get("/api/health", (_req, res) => {
res.json({ status: "ok" });
});
app.listen(port, "0.0.0.0", () => {
console.log(`Server in ascolto sulla porta ${port}`);
});