Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/src/iac/backend-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ export class BackendStack extends cdk.Stack {
const integrationOptions = {
connectionType: apigateway.ConnectionType.VPC_LINK,
vpcLink: vpcLink,
timeout: cdk.Duration.seconds(300), // Adding 5-minute timeout (300 seconds)
};

const getDocsIntegration = new apigateway.Integration({
Expand Down
3 changes: 3 additions & 0 deletions backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ async function bootstrap() {
// Configure JSON body parser with increased limits
app.use(json({ limit: '3mb' })); // Increased from default 100kb to 3mb

// Set server timeout to 5 minutes (300,000 ms)
app.getHttpAdapter().getInstance().timeout = 300000;

// Enable CORS
app.enableCors({
origin: [
Expand Down