Build and Push Multi-Platform Images / build-and-push (push) Successful in 41s
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>
22 lines
592 B
TypeScript
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();
|