Files
paperlessmanager/paperless-backend/src/main.ts
T
bjoernpoettkerandClaude Sonnet 4.6 dad0136365
Build and Push Multi-Platform Images / build-and-push (push) Successful in 41s
chore: apply ESLint auto-fix across entire backend
Reformats code style (line breaks, indentation, type annotations)
without changing logic. Also includes minor feature additions bundled
in the same lint run (stats service, user-settings groups, agrarmonitor
polling improvements).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 09:02:02 +02:00

22 lines
592 B
TypeScript

import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { Logger } from '@nestjs/common';
async function bootstrap(): Promise<void> {
const app = await NestFactory.create(AppModule);
const port = process.env.PORT ?? 3100;
app.enableCors({
origin:
process.env.CORS_ORIGIN ??
(process.env.NODE_ENV === 'production' ? false : '*'),
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS',
credentials: true,
});
await app.listen(port);
Logger.log(`Paperless-Middleware läuft auf Port ${port}`, 'Bootstrap');
}
bootstrap();