import { NestFactory } from "@nestjs/core"; import { FastifyAdapter, type NestFastifyApplication, } from "@nestjs/platform-fastify"; import { AppModule } from "./app.module.js"; const app = await NestFactory.create( AppModule, new FastifyAdapter(), ); const port = 3000; const host = "0.0.0.0"; const protocol = process.env.NODE_ENV === "production" ? "https" : "http"; const url = `${protocol}://${host}:${port}`; await app.listen(port, host); console.log(`Server listening on ${url} 🚀`);