12 lines
331 B
TypeScript
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();
|