/**
 * 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}`);