-
-
Save hnakao/cc5273872f3996fb6c88a001a172e1ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function bootstrap() { | |
const app = await NestFactory.create(AppModule, { cors: true }); | |
const configService: ConfigService = app.get(ConfigService); | |
app.setGlobalPrefix('/api/' + configService.get('APP_VERSION')); | |
app.useGlobalFilters(new HttpExceptionFilter()); | |
app.use(bodyParser.json({ limit: '5mb' })); | |
app.use(bodyParser.urlencoded({ limit: '5mb', extended: true })); | |
Sentry.init({ | |
dsn: configService.get('SENTRY_DSN'), | |
environment: configService.getEnvironment(), | |
}); | |
await app.listen(configService.get('APP_PORT')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment