1- import { TypeBoxTypeProvider } from "@fastify/type-provider-typebox" ;
2- import fastify , { FastifyInstance } from "fastify" ;
3- import * as fs from "fs" ;
4- import path from "path" ;
5- import { URL } from "url" ;
1+ import type { TypeBoxTypeProvider } from "@fastify/type-provider-typebox" ;
2+ import fastify , { type FastifyInstance } from "fastify" ;
3+ import * as fs from "node: fs" ;
4+ import path from "node: path" ;
5+ import { URL } from "node: url" ;
66import { clearCacheCron } from "../utils/cron/clearCacheCron" ;
77import { env } from "../utils/env" ;
88import { logger } from "../utils/logger" ;
@@ -14,7 +14,6 @@ import { withAuth } from "./middleware/auth";
1414import { withCors } from "./middleware/cors" ;
1515import { withEnforceEngineMode } from "./middleware/engineMode" ;
1616import { withErrorHandler } from "./middleware/error" ;
17- import { withExpress } from "./middleware/express" ;
1817import { withRequestLogs } from "./middleware/logs" ;
1918import { withOpenApi } from "./middleware/open-api" ;
2019import { withPrometheus } from "./middleware/prometheus" ;
@@ -80,7 +79,6 @@ export const initServer = async () => {
8079 await withRateLimit ( server ) ;
8180 await withWebSocket ( server ) ;
8281 await withAuth ( server ) ;
83- await withExpress ( server ) ;
8482 await withOpenApi ( server ) ;
8583 await withRoutes ( server ) ;
8684 await withServerUsageReporting ( server ) ;
0 commit comments