mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
fix: billing
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
import { Hono } from 'hono';
|
||||
import { bodyLimit } from 'hono/body-limit';
|
||||
import { contextStorage } from 'hono/context-storage';
|
||||
import { timeout } from 'hono/timeout';
|
||||
|
||||
import { tsRestHonoApp } from '@documenso/api/hono';
|
||||
import { auth } from '@documenso/auth/server';
|
||||
@ -22,12 +20,6 @@ export interface HonoEnv {
|
||||
|
||||
const app = new Hono<HonoEnv>();
|
||||
|
||||
/**
|
||||
* Global middleware limits.
|
||||
*/
|
||||
app.use(timeout(120000)); // Two minute timeout.
|
||||
app.use(bodyLimit({ maxSize: 50 * 1024 * 1024 })); // 50mb size limit.
|
||||
|
||||
/**
|
||||
* Attach session and context to requests.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user