import { serve } from '@hono/node-server';
import app from './index';

const PORT = Number(process.env.PORT ?? 5555);

serve(
  {
    fetch: app.fetch,
    port: PORT
  },
  (info) => {
    console.log(
      `[tidyindex-api] listening on http://localhost:${info.port}`
    );
  }
);
