Files
aurorabot/web/src/index.ts
2026-01-08 16:09:26 +01:00

18 lines
485 B
TypeScript

/**
* Web server entry point.
*
* This file can be run directly for standalone development:
* bun --hot src/index.ts
*
* Or the server can be started in-process by importing from ./server.ts
*/
import { createWebServer } from "./server";
// Auto-start when run directly
const instance = await createWebServer({
port: Number(process.env.WEB_PORT) || 3000,
hostname: process.env.WEB_HOST || "localhost",
});
console.log(`🌐 Web server is running at ${instance.url}`);