fix(server): füge Server-Start-Konfiguration hinzu für Hono-App
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
Reference in New Issue
Block a user