diff --git a/timeout-interceptor.service.ts b/timeout-interceptor.service.ts index f4737a45..0ed59b2b 100644 --- a/timeout-interceptor.service.ts +++ b/timeout-interceptor.service.ts @@ -19,7 +19,9 @@ export class TimeoutInterceptor implements HttpInterceptor { return next.handle(req); } - const timeoutValue = isPlatformServer(this.platformId)?3000:6000;//req.headers.get('timeout') || this.defaultTimeout; + let serverTime = properties.environment == "production" ? 3000 : 4000; + let clientTime = properties.environment == "production" ? 6000 : 12000; + const timeoutValue = isPlatformServer(this.platformId)?serverTime:clientTime;//req.headers.get('timeout') || this.defaultTimeout; const timeoutValueNumeric = Number(timeoutValue); return next.handle(req).pipe(timeout(timeoutValueNumeric)); }