2024-11-23 00:37:22 +00:00
|
|
|
import { NestFactory } from "@nestjs/core";
|
|
|
|
import { AppModule } from "./app.module";
|
|
|
|
|
|
|
|
async function bootstrap() {
|
|
|
|
const app = await NestFactory.create(AppModule);
|
2024-11-24 01:34:20 +00:00
|
|
|
app.enableCors({
|
|
|
|
origin: "*"
|
|
|
|
});
|
2024-11-23 00:37:22 +00:00
|
|
|
await app.listen(process.env.PORT ?? 3000);
|
|
|
|
}
|
|
|
|
bootstrap();
|