-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnestia.config.ts
More file actions
34 lines (31 loc) · 861 Bytes
/
nestia.config.ts
File metadata and controls
34 lines (31 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { INestiaConfig } from '@nestia/sdk';
import { NestFactory } from '@nestjs/core';
// import { FastifyAdapter } from '@nestjs/platform-fastify';
import { AppModule } from './src/app.module';
const NESTIA_CONFIG: INestiaConfig = {
input: async () => {
const app = await NestFactory.create(AppModule);
// const app = await NestFactory.create(YourModule, new FastifyAdaptor());
// app.setGlobalPrefix("api");
// app.enableVersioning({
// type: VersioningType.URI,
// prefix: "v",
// })
return app;
},
output: 'libs/types',
clone: true,
distribute: 'libs/nestia-sdk',
swagger: {
output: 'nestia/swagger.json',
security: {},
servers: [
{
url: 'http://localhost:5001',
description: 'Local Server',
},
],
beautify: true,
},
};
export default NESTIA_CONFIG;