File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
packages/treeshake-server/src Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ import { startPeriodicPrune } from '@/services/pnpmMaintenance';
1212import { setLogger } from '@/infra/logger' ;
1313import { setRuntimeEnv } from '@/utils/runtimeEnv' ;
1414
15+ import { timeout } from 'hono/timeout' ;
16+
1517export function createApp (
1618 deps : {
1719 objectStore : ObjectStore ;
@@ -46,6 +48,8 @@ export function createApp(
4648 ) ;
4749 app . use ( '*' , loggerMiddleware ) ;
4850 app . use ( '*' , createDiMiddleware ( deps ) ) ;
51+ // 1 minute timeout for all routes
52+ app . use ( '*' , timeout ( 60000 ) ) ;
4953
5054 if ( opts ?. appExtensions ?. length ) {
5155 for ( const extend of opts . appExtensions ) {
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ export function createServer(opts: {
1313 fetch : opts . app . fetch ,
1414 port,
1515 hostname,
16+ overrideGlobalObjects : false ,
1617 } ) ;
1718}
You can’t perform that action at this time.
0 commit comments