|
@ -7,7 +7,7 @@ import helmet from 'helmet'; |
|
|
|
|
|
|
|
|
import { AppModule } from './app/app.module'; |
|
|
import { AppModule } from './app/app.module'; |
|
|
import { environment } from './environments/environment'; |
|
|
import { environment } from './environments/environment'; |
|
|
import { StaticMiddleware } from './middlewares/static.middleware'; |
|
|
import { HtmlTemplateMiddleware } from './middlewares/html-template.middleware'; |
|
|
|
|
|
|
|
|
async function bootstrap() { |
|
|
async function bootstrap() { |
|
|
const configApp = await NestFactory.create(AppModule); |
|
|
const configApp = await NestFactory.create(AppModule); |
|
@ -53,7 +53,7 @@ async function bootstrap() { |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
app.use(StaticMiddleware); |
|
|
app.use(HtmlTemplateMiddleware); |
|
|
|
|
|
|
|
|
const BASE_CURRENCY = configService.get<string>('BASE_CURRENCY'); |
|
|
const BASE_CURRENCY = configService.get<string>('BASE_CURRENCY'); |
|
|
const HOST = configService.get<string>('HOST') || '0.0.0.0'; |
|
|
const HOST = configService.get<string>('HOST') || '0.0.0.0'; |
|
|