|
| 1 | +module ReactOnRailsPro |
| 2 | + class Configuration |
| 3 | + DEFAULT_RENDERER_URL: String |
| 4 | + DEFAULT_RENDERER_METHOD: String |
| 5 | + DEFAULT_RENDERER_FALLBACK_EXEC_JS: bool |
| 6 | + DEFAULT_RENDERER_HTTP_POOL_SIZE: Integer |
| 7 | + DEFAULT_RENDERER_HTTP_POOL_TIMEOUT: Integer |
| 8 | + DEFAULT_RENDERER_HTTP_POOL_WARN_TIMEOUT: Float |
| 9 | + DEFAULT_SSR_TIMEOUT: Integer |
| 10 | + DEFAULT_PRERENDER_CACHING: bool |
| 11 | + DEFAULT_TRACING: bool |
| 12 | + DEFAULT_DEPENDENCY_GLOBS: Array[untyped] |
| 13 | + DEFAULT_EXCLUDED_DEPENDENCY_GLOBS: Array[untyped] |
| 14 | + DEFAULT_REMOTE_BUNDLE_CACHE_ADAPTER: nil |
| 15 | + DEFAULT_RENDERER_REQUEST_RETRY_LIMIT: Integer |
| 16 | + DEFAULT_THROW_JS_ERRORS: bool |
| 17 | + DEFAULT_RENDERING_RETURNS_PROMISES: bool |
| 18 | + DEFAULT_PROFILE_SERVER_RENDERING_JS_CODE: bool |
| 19 | + DEFAULT_RAISE_NON_SHELL_SERVER_RENDERING_ERRORS: bool |
| 20 | + DEFAULT_ENABLE_RSC_SUPPORT: bool |
| 21 | + DEFAULT_RSC_PAYLOAD_GENERATION_URL_PATH: String |
| 22 | + DEFAULT_RSC_BUNDLE_JS_FILE: String |
| 23 | + DEFAULT_REACT_CLIENT_MANIFEST_FILE: String |
| 24 | + DEFAULT_REACT_SERVER_CLIENT_MANIFEST_FILE: String |
| 25 | + |
| 26 | + attr_accessor renderer_url: String? |
| 27 | + attr_accessor renderer_password: String? |
| 28 | + attr_accessor tracing: bool? |
| 29 | + attr_accessor server_renderer: String? |
| 30 | + attr_accessor renderer_use_fallback_exec_js: bool? |
| 31 | + attr_accessor prerender_caching: bool? |
| 32 | + attr_accessor renderer_http_pool_size: Integer? |
| 33 | + attr_accessor renderer_http_pool_timeout: Integer? |
| 34 | + attr_accessor renderer_http_pool_warn_timeout: Float? |
| 35 | + attr_accessor dependency_globs: Array[String]? |
| 36 | + attr_accessor excluded_dependency_globs: Array[String]? |
| 37 | + attr_accessor rendering_returns_promises: bool? |
| 38 | + attr_accessor remote_bundle_cache_adapter: Module? |
| 39 | + attr_accessor ssr_pre_hook_js: String? |
| 40 | + attr_accessor assets_to_copy: Array[String]? |
| 41 | + attr_accessor renderer_request_retry_limit: Integer? |
| 42 | + attr_accessor throw_js_errors: bool? |
| 43 | + attr_accessor ssr_timeout: Integer? |
| 44 | + attr_accessor profile_server_rendering_js_code: bool? |
| 45 | + attr_accessor raise_non_shell_server_rendering_errors: bool? |
| 46 | + attr_accessor enable_rsc_support: bool? |
| 47 | + attr_accessor rsc_payload_generation_url_path: String? |
| 48 | + attr_accessor rsc_bundle_js_file: String? |
| 49 | + attr_accessor react_client_manifest_file: String? |
| 50 | + attr_accessor react_server_client_manifest_file: String? |
| 51 | + |
| 52 | + def initialize: ( |
| 53 | + ?renderer_url: String?, |
| 54 | + ?renderer_password: String?, |
| 55 | + ?server_renderer: String?, |
| 56 | + ?renderer_use_fallback_exec_js: bool?, |
| 57 | + ?prerender_caching: bool?, |
| 58 | + ?renderer_http_pool_size: Integer?, |
| 59 | + ?renderer_http_pool_timeout: Integer?, |
| 60 | + ?renderer_http_pool_warn_timeout: Float?, |
| 61 | + ?tracing: bool?, |
| 62 | + ?dependency_globs: Array[String]?, |
| 63 | + ?excluded_dependency_globs: Array[String]?, |
| 64 | + ?rendering_returns_promises: bool?, |
| 65 | + ?remote_bundle_cache_adapter: Module?, |
| 66 | + ?ssr_pre_hook_js: String?, |
| 67 | + ?assets_to_copy: Array[String]?, |
| 68 | + ?renderer_request_retry_limit: Integer?, |
| 69 | + ?throw_js_errors: bool?, |
| 70 | + ?ssr_timeout: Integer?, |
| 71 | + ?profile_server_rendering_js_code: bool?, |
| 72 | + ?raise_non_shell_server_rendering_errors: bool?, |
| 73 | + ?enable_rsc_support: bool?, |
| 74 | + ?rsc_payload_generation_url_path: String?, |
| 75 | + ?rsc_bundle_js_file: String?, |
| 76 | + ?react_client_manifest_file: String?, |
| 77 | + ?react_server_client_manifest_file: String? |
| 78 | + ) -> void |
| 79 | + |
| 80 | + def setup_config_values: () -> void |
| 81 | + |
| 82 | + def check_react_on_rails_support_for_rsc: () -> void |
| 83 | + |
| 84 | + def setup_execjs_profiler_if_needed: () -> void |
| 85 | + |
| 86 | + def node_renderer?: () -> bool |
| 87 | + |
| 88 | + private |
| 89 | + |
| 90 | + def setup_assets_to_copy: () -> void |
| 91 | + |
| 92 | + def configure_default_url_if_not_provided: () -> void |
| 93 | + |
| 94 | + def validate_url: () -> void |
| 95 | + |
| 96 | + def validate_remote_bundle_cache_adapter: () -> void |
| 97 | + |
| 98 | + def setup_renderer_password: () -> void |
| 99 | + end |
| 100 | +end |
0 commit comments