File tree 4 files changed +6
-16
lines changed 4 files changed +6
-16
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import { AppController } from './app.controller';
3
3
import { AppService } from './app.service' ;
4
4
import { TypeOrmModule } from '@nestjs/typeorm' ;
5
5
import { ConfigModule } from '@nestjs/config' ;
6
- import configuration from 'src/config/config' ;
6
+ import { UsersModule } from './module/users/users.module' ;
7
+ import configuration from '../config/config' ;
7
8
8
9
@Module ( {
9
10
imports : [
@@ -22,6 +23,7 @@ import configuration from 'src/config/config';
22
23
entities : [ ] ,
23
24
synchronize : true ,
24
25
} ) ,
26
+ UsersModule ,
25
27
] ,
26
28
controllers : [ AppController ] ,
27
29
providers : [ AppService ] ,
Original file line number Diff line number Diff line change @@ -3,22 +3,9 @@ import { AppModule } from './app.module';
3
3
import * as cookieParser from 'cookie-parser' ;
4
4
import * as bodyParser from 'body-parser' ;
5
5
import * as compression from 'compression' ;
6
- import fs from 'fs' ;
7
- import path from 'path' ;
8
6
9
7
async function bootstrap ( ) {
10
- const ssl = process . env . SSL === 'true' ;
11
- let httpsOptions = null ;
12
- if ( ssl ) {
13
- const keyPath = process . env . SSL_KEY_PATH || '' ;
14
- const certPath = process . env . SSL_CERT_PATH || '' ;
15
- httpsOptions = {
16
- key : fs . readFileSync ( path . join ( __dirname , keyPath ) ) ,
17
- cert : fs . readFileSync ( path . join ( __dirname , certPath ) ) ,
18
- } ;
19
- }
20
-
21
- const app = await NestFactory . create ( AppModule , { httpsOptions } ) ;
8
+ const app = await NestFactory . create ( AppModule ) ;
22
9
23
10
app . setGlobalPrefix ( 'api' ) ;
24
11
app . use ( bodyParser . json ( { limit : '10000mb' } ) ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
+ "types" : [" node" , " @types/jest" ],
3
4
"module" : " commonjs" ,
4
5
"declaration" : true ,
5
6
"removeComments" : true ,
6
7
"emitDecoratorMetadata" : true ,
7
8
"experimentalDecorators" : true ,
8
9
"allowSyntheticDefaultImports" : true ,
9
- "target" : " ES2021 " ,
10
+ "target" : " es2017 " ,
10
11
"sourceMap" : true ,
11
12
"outDir" : " ./dist" ,
12
13
"baseUrl" : " ./" ,
You can’t perform that action at this time.
0 commit comments