`<!doctype html><html><head><title>Domain not configured</title><style>body{background:#0a0c10;color:#e5e7eb;font-family:ui-monospace,monospace;display:flex;align-items:center;justify-content:center;min-height:100vh;margin:0}</style></head><body><div><h1>Domain nicht konfiguriert</h1><p>Diese Domain ist auf diesem Server nicht eingerichtet.</p></div></body></html>`
);
return;
}
awaithandle(req,res,parsedUrl);
}catch(err){
console.error("[server] error",err);
res.statusCode=500;
res.end("Internal Server Error");
}
});
server.listen(port,hostname,()=>{
console.log(`> CoreX NexRedirect on http://${hostname}:${port} (${dev?"dev":"prod"})`);