Browse Source
Merge pull request #92 from vernu/fix-bulk-sms-limits
raise request body limit from 100kb to 2mb
pull/94/head
Israel Abebe
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
api/src/main.ts
|
|
|
@ -5,9 +5,10 @@ import { AppModule } from './app.module' |
|
|
|
import * as firebase from 'firebase-admin' |
|
|
|
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger' |
|
|
|
import * as express from 'express' |
|
|
|
import { NestExpressApplication } from '@nestjs/platform-express' |
|
|
|
|
|
|
|
async function bootstrap() { |
|
|
|
const app = await NestFactory.create(AppModule) |
|
|
|
const app: NestExpressApplication = await NestFactory.create(AppModule) |
|
|
|
const PORT = process.env.PORT || 3001 |
|
|
|
|
|
|
|
app.setGlobalPrefix('api') |
|
|
|
@ -55,6 +56,7 @@ async function bootstrap() { |
|
|
|
'/api/v1/billing/webhook/polar', |
|
|
|
express.raw({ type: 'application/json' }), |
|
|
|
) |
|
|
|
app.useBodyParser('json', { limit: '2mb' }); |
|
|
|
app.enableCors() |
|
|
|
await app.listen(PORT) |
|
|
|
} |
|
|
|
|