style(main): Reformat code for readability

The main.ts file has been reformatted according to the coding standards. This change includes correcting several indentation issues and ensuring that all imports are properly grouped. There is no impact on functionality.
This commit is contained in:
Mathis H (Avnyr) 2024-07-09 15:02:54 +02:00
parent e1909791ac
commit da99165531
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -3,17 +3,17 @@ import { NestFactory } from "@nestjs/core";
import {
FastifyAdapter,
type NestFastifyApplication,
} from '@nestjs/platform-fastify';
import { AppModule } from "./app.module";
} from "@nestjs/platform-fastify";
import helmet from "helmet";
import { AppModule } from "./app.module";
async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>(
AppModule,
new FastifyAdapter({logger: true})
new FastifyAdapter({ logger: true }),
);
app.use(helmet())
app.use(helmet());
app.enableCors();
await app.listen(process.env.APP_PORT || 3333, '0.0.0.0');
await app.listen(process.env.APP_PORT || 3333, "0.0.0.0");
}
bootstrap();
bootstrap();