fix(server): füge Server-Start-Konfiguration hinzu für Hono-App

This commit is contained in:
2025-10-01 22:38:44 +02:00
parent 143051a90a
commit 18b75fdde3

View File

@@ -56,4 +56,14 @@ Canonical: https://${process.env.DOMAIN || 'localhost:5173'}/.well-known/securit
app.route("/rpc", rpcApp);
app.get("/*", clientEntry);
export default app;
// Start server
const port = process.env.PORT ? parseInt(process.env.PORT) : 3000;
const host = process.env.HOST || "0.0.0.0";
console.log(`🚀 Server starting on ${host}:${port}`);
export default {
port,
hostname: host,
fetch: app.fetch,
};