aboutsummaryrefslogtreecommitdiff
path: root/web/api/src/dev-server.ts
blob: 4ea4735cf4cb275e7585464fd2431196baddff3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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}`
    );
  }
);