Skip to content

Instantly share code, notes, and snippets.

View hnakao's full-sized avatar

Hiroshi Nakao hnakao

  • HISEO
View GitHub Profile
@hnakao
hnakao / test
Created November 11, 2020 21:30
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(),