import 'reflect-metadata'; import { NestFactory } from '@nestjs/core'; import { FastifyAdapter, type NestFastifyApplication } from '@nestjs/platform-fastify'; import { AppModule } from './app.module.js'; async function bootstrap(): Promise { const app = await NestFactory.create(AppModule, new FastifyAdapter()); await app.listen(4000, '0.0.0.0'); console.log('Gateway listening on port 4000'); } bootstrap().catch((err: unknown) => { console.error(err); process.exit(1); });