First commit
This commit is contained in:
16
src/server/index.js
Normal file
16
src/server/index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { serve } from '@hono/node-server';
|
||||
import { createApp } from './app.js';
|
||||
import { env } from './config/env.js';
|
||||
|
||||
const app = createApp();
|
||||
|
||||
serve(
|
||||
{
|
||||
fetch: app.fetch,
|
||||
port: env.port,
|
||||
hostname: '127.0.0.1',
|
||||
},
|
||||
(info) => {
|
||||
console.log(`CertRemind API listening on http://${info.address}:${info.port}`);
|
||||
},
|
||||
);
|
||||
Reference in New Issue
Block a user