Skip to content

Commit

Permalink
increase max body size to 50mb
Browse files Browse the repository at this point in the history
  • Loading branch information
rphovley committed Oct 3, 2024
1 parent 573f9fc commit 3300914
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/server/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Import this first!
import './sentry'

import { NestFactory } from '@nestjs/core'
import { AppModule } from './app.module'
import { Logger, ValidationPipe } from '@nestjs/common'
Expand All @@ -9,6 +8,7 @@ import { PROCESS_NAME } from '../utils/constants'
import { updateSettings } from '../utils/ini.util'
import { startMigrations } from './v1/database/migrations'
import { CodeClimberExceptionFilter } from './filters/codeClimbersException.filter'
import { urlencoded, json } from 'express'

const updatedWakatimeIniValues: Record<string, string> = {
api_key: 'eacb3beb-dad8-4fa1-b6ba-f89de8bf8f4a', // placeholder value
Expand All @@ -29,6 +29,9 @@ export async function bootstrap() {
})
traceEnvironment()

app.use(json({ limit: '50mb' }))
app.use(urlencoded({ extended: true, limit: '50mb' }))

app.enableCors({
origin: isProd()
? [
Expand Down

0 comments on commit 3300914

Please sign in to comment.