Skip to content

[Feature]: Make client-side timeout values configurable via environment variables #41540

@m-k8s

Description

@m-k8s

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Several timeout constants in ApiConstants.tsx are currently hardcoded and cannot be changed without modifying the source code and rebuilding the application:

  • REQUEST_TIMEOUT_MS (20s) - General API request timeout
  • DEFAULT_ACTION_TIMEOUT (10s) - Default action timeout
  • DEFAULT_EXECUTE_ACTION_TIMEOUT_MS (15s) - Action execution timeout
  • DEFAULT_TEST_DATA_SOURCE_TIMEOUT_MS (30s) - Datasource test timeout
  • DEFAULT_APPSMITH_AI_QUERY_TIMEOUT_MS (60s) - AI query timeout
  • FILE_UPLOAD_TRIGGER_TIMEOUT_MS (60s) - File upload timeout

Why should this be worked on?

Different deployment environments have different network characteristics and backend response times. Administrators need the ability to tune client-side timeout values to match their infrastructure requirements without rebuilding the application.

The feature should follow the same runtime injection pattern already used for other configuration values (Sentry DSN, Segment key, etc.) via environment variables and window.APPSMITH_FEATURE_CONFIGS.

Metadata

Metadata

Labels

EnhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions