import "reflect-metadata"; import { NestFactory } from "@nestjs/core"; import { AppModule } from "./app.module"; async function bootstrap(): Promise { const app = await NestFactory.create(AppModule); app.enableCors({ origin: ["http://localhost:5173", "http://127.0.0.1:5173"], methods: ["GET", "POST", "OPTIONS"], }); await app.listen(3000); console.log("Backend running on http://localhost:3000"); } void bootstrap();