diff --git a/sources/app/api.ts b/sources/app/api.ts index b4d2b53..d40e7d6 100644 --- a/sources/app/api.ts +++ b/sources/app/api.ts @@ -63,6 +63,7 @@ export async function startApi(): Promise<{ app: FastifyInstance; io: Server }> // Start API const app = fastify({ logger: true, + loggerInstance: logger, bodyLimit: 1024 * 1024 * 100, // 100MB }); app.register(import('@fastify/cors'), { @@ -2501,5 +2502,5 @@ export async function startApi(): Promise<{ app: FastifyInstance; io: Server }> await io.close(); }); - return { app, io }; + return { app: app as unknown as FastifyInstance, io }; } \ No newline at end of file