// Dezky Provisioning Service — Entry point // Handles tenant lifecycle: create, suspend, delete, billing webhooks. import { NestFactory } from '@nestjs/core' import { FastifyAdapter, NestFastifyApplication } from '@nestjs/platform-fastify' import { AppModule } from './app.module.js' async function bootstrap() { const app = await NestFactory.create( AppModule, new FastifyAdapter({ logger: true }), ) app.enableCors({ origin: /^https:\/\/([a-z0-9-]+\.)?dezky\.local$/, credentials: true, }) const port = Number(process.env.PORT ?? 3001) await app.listen(port, '0.0.0.0') console.log(`Provisioning service listening on http://0.0.0.0:${port}`) } bootstrap().catch((err) => { console.error('Failed to start provisioning service', err) process.exit(1) })