From b53cf5d5a6bcd4d94115fec0df7be0b0ecb0f4fa Mon Sep 17 00:00:00 2001 From: MomenNano Date: Fri, 5 Aug 2022 01:07:44 +0200 Subject: [PATCH] index: remove fastify for the sake of the new build function --- index.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/index.ts b/index.ts index 17f043b..1b4b159 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,3 @@ -import fastify from 'fastify' import app from './src/app' /* @@ -9,18 +8,13 @@ import './src/config' /* initialize fastify */ -const server = fastify({ +const server = app({ ignoreTrailingSlash: true, logger: { level: process.env.LOG_LEVEL } }) -/* - register app plugin -*/ -void server.register(app) - /* start and listen to connections */