Initial ASPHP website

This commit is contained in:
Codex
2026-09-06 00:14:09 +03:30
commit ff6d5a3c0c
65 changed files with 14617 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { createServer } from "node:http";
import next from "next";
const hostname = process.env.HOSTNAME || "127.0.0.1";
const port = Number(process.env.PORT || 3000);
const app = next({ dev: true, hostname, port });
const handle = app.getRequestHandler();
await app.prepare();
createServer((req, res) => {
handle(req, res);
}).listen(port, hostname, () => {
console.log(`Ready on http://${hostname}:${port}`);
});