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:
parent
e1909791ac
commit
da99165531
12
src/main.ts
12
src/main.ts
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user