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

This commit is contained in:
AV77web 2026-07-03 16:51:09 +02:00
parent 9bce1db659
commit d812d97c41

23
src/index.ts Normal file
View file

@ -0,0 +1,23 @@
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.use(express.json());
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}`);
});