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
10
src/main.ts
10
src/main.ts
@ -3,17 +3,17 @@ import { NestFactory } from "@nestjs/core";
|
|||||||
import {
|
import {
|
||||||
FastifyAdapter,
|
FastifyAdapter,
|
||||||
type NestFastifyApplication,
|
type NestFastifyApplication,
|
||||||
} from '@nestjs/platform-fastify';
|
} from "@nestjs/platform-fastify";
|
||||||
import { AppModule } from "./app.module";
|
|
||||||
import helmet from "helmet";
|
import helmet from "helmet";
|
||||||
|
import { AppModule } from "./app.module";
|
||||||
|
|
||||||
async function bootstrap() {
|
async function bootstrap() {
|
||||||
const app = await NestFactory.create<NestFastifyApplication>(
|
const app = await NestFactory.create<NestFastifyApplication>(
|
||||||
AppModule,
|
AppModule,
|
||||||
new FastifyAdapter({logger: true})
|
new FastifyAdapter({ logger: true }),
|
||||||
);
|
);
|
||||||
app.use(helmet())
|
app.use(helmet());
|
||||||
app.enableCors();
|
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