shows-api/src/main.ts
2025-01-28 11:13:35 +01:00

12 lines
331 B
TypeScript

import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors({
credentials: true,
origin: ['https://shows.everest.tailscale/admin/']
});
await app.listen(process.env.PORT ?? 3000);
}
bootstrap();