diff options
Diffstat (limited to '')
| -rw-r--r-- | web/api/src/dev-server.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/web/api/src/dev-server.ts b/web/api/src/dev-server.ts new file mode 100644 index 0000000..4ea4735 --- /dev/null +++ b/web/api/src/dev-server.ts @@ -0,0 +1,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}` + ); + } +); |
