fix: remove duplicate /health route in backoffice

The health endpoint was defined both in main.ts and app.controller.ts
causing FastifyError: Method 'GET' already declared
This commit is contained in:
Tiago Yamamoto 2026-02-16 08:47:42 -06:00
parent 11e0deef2a
commit 218dd48777

View file

@ -86,10 +86,6 @@ async function bootstrap() {
SwaggerModule.setup('docs', app, SwaggerModule.createDocument(app, config));
// Health check endpoint
const fastifyInstance = app.getHttpAdapter().getInstance();
fastifyInstance.get('/health', async () => ({ status: 'ok', timestamp: new Date().toISOString() }));
// Start server
const port = process.env.BACKOFFICE_PORT || 3001;
const host = '0.0.0.0'; // Force 0.0.0.0 to allow container binding even if env injects public IP