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" ;
6
6
import { clearCacheCron } from "../utils/cron/clearCacheCron" ;
7
7
import { env } from "../utils/env" ;
8
8
import { logger } from "../utils/logger" ;
@@ -14,7 +14,6 @@ import { withAuth } from "./middleware/auth";
14
14
import { withCors } from "./middleware/cors" ;
15
15
import { withEnforceEngineMode } from "./middleware/engineMode" ;
16
16
import { withErrorHandler } from "./middleware/error" ;
17
- import { withExpress } from "./middleware/express" ;
18
17
import { withRequestLogs } from "./middleware/logs" ;
19
18
import { withOpenApi } from "./middleware/open-api" ;
20
19
import { withPrometheus } from "./middleware/prometheus" ;
@@ -80,7 +79,6 @@ export const initServer = async () => {
80
79
await withRateLimit ( server ) ;
81
80
await withWebSocket ( server ) ;
82
81
await withAuth ( server ) ;
83
- await withExpress ( server ) ;
84
82
await withOpenApi ( server ) ;
85
83
await withRoutes ( server ) ;
86
84
await withServerUsageReporting ( server ) ;
0 commit comments