Introducing a new way to review your PRs.

Read the announcement

shakacode / react_on_rails

Integration of React + Webpack + Rails including server-side rendering of React, enabling a better developer experience and faster client performance.

View on GitHub

19 documents · Updated Nov 18, 2026

docs / development-and-diagnostics

Development services and diagnostics

React on Rails provides local tools that run Rails and JavaScript services as one workflow, keep their ports separate, prepare the packs that Rails and the browser need, and report setup problems before they become runtime failures. These tools connect the development launcher with Shakapacker, the test suite, and optional React on Rails Pro services. The launcher also records enough app-local session state to stop only the development processes that belong to the current app.

Development server workflow

The development workflow is a process group that starts Rails with the asset service selected for the task. bin/dev uses the enhanced ReactOnRails::Dev::ServerManager, which checks local prerequisites, prepares generated packs, selects ports, records app-scoped session state, and then gives a Procfile to Overmind or Foreman.

The launcher supports four main modes. The default mode serves changing assets through the development server and can use Hot Module Replacement (HMR), which updates browser code without a full page load. Static mode writes watched assets to disk and avoids HMR. Production-assets mode first builds optimized assets, then starts Rails without a development asset server. Test-watch mode keeps test bundles current.

ModeMain goalAsset behavior
Default or hmrFast interactive browser workDevelopment server with HMR or the configured live-reload behavior
staticStable files for browser and test useWatch mode writes assets to disk; no HMR
production-assets or prodCheck production-like bundles locallyOne production-optimized asset build; no HMR
test-watchKeep test bundles currentWatch mode runs with RAILS_ENV=test

The launcher reads the development configuration to describe the active mode. It also checks the database and any services listed in .dev-services.yml before it starts the process group. A developer can skip the database check when the app has no database or when startup speed matters, but service checks remain a separate local dependency check.

This diagram shows the common startup path from a launcher command to a running local app.

flowchart TD
    A[bin/dev command] --> B[Select development mode]
    B --> C[Run precompile hook when configured]
    C --> D[Check database and local services]
    D --> E[Select Rails, asset, and renderer ports]
    E --> F[Generate or verify packs]
    F --> G[Validate Procfile]
    G --> H[Record app session]
    H --> I[Start Overmind or Foreman]
    I --> J[Rails and JavaScript services]

References: react_on_rails/…/server_manager.rb• L481-533 react_on_rails/…/server_manager.rb• L2687-2948 react_on_rails/…/server_manager.rb• L492-500

Process manager selection

The process manager keeps the Rails server and asset processes under one lifecycle. It prefers Overmind and falls back to Foreman, while checking that each command is usable both inside and outside the current Bundler environment.

Before launch, the manager removes stale Overmind sockets and unsafe Rails PID files. A missing or unreadable Procfile stops the launch. If neither process manager is available, the tool reports the required installation instead of starting only part of the application.

The same Bundler-aware lookup also controls Overmind shutdown commands. A control command can replace its Ruby helper process with the available Overmind executable, so startup and shutdown use the same project or system installation. Runtime port and renderer settings are passed explicitly to a child started outside Bundler. This prevents Bundler's environment reset from restoring an old or invalid value.

References: react_on_rails/…/process_manager.rb• L42-99 react_on_rails/…/process_manager.rb• L130-189 react_on_rails/…/process_manager.rb• L219-237 react_on_rails/…/server_manager.rb• L1682-1755

Development service checks

The service checker treats .dev-services.yml as an optional list of external services that the local app needs. Each entry defines a check command and can provide a start command, an install hint, and a description. A missing file or an empty service list does not block startup.

When a configured check fails, the launcher stops before starting Rails and shows the command that can start the missing service. This makes Redis, PostgreSQL, Elasticsearch, and app-specific services visible as local dependencies without forcing them into the Procfile.

References: react_on_rails/…/service_checker.rb• L9-49 react_on_rails/…/service_checker.rb• L59-99 react_on_rails/…/service_checker.rb• L161-194

Port allocation

Port allocation gives each local service a reachable address and keeps parallel workspaces from colliding. The selector first honors a configured workspace base port, then explicit service ports, and finally probes for free ports from the normal defaults.

In base-port mode, the Rails, asset, and optional Node renderer services use a fixed block. The base value comes from REACT_ON_RAILS_BASE_PORT or the best-effort CONDUCTOR_PORT convention. The derived roles are:

ServiceOffset from base
Rails+0
Shakapacker development server+1
Pro Node renderer+2

Without a base port, the selector keeps valid PORT and SHAKAPACKER_DEV_SERVER_PORT values. It probes from Rails port 3000 and asset port 3035 when either value is absent. The probe checks both IPv4 and IPv6 loopback because local JavaScript servers can bind to either address.

Base-port mode takes priority over per-service values and warns when it must replace them. In explicit mode, valid values are kept and invalid values are replaced with a safe selection. A renderer URL and renderer port must also agree so Rails does not send server-rendering requests to a different local process. The current REACT_RENDERER_URL name is preferred; a legacy RENDERER_URL value is warned about and remains supported during migration.

The production-assets mode uses the base-port block when one is active. Otherwise it selects a Rails port from 3001 so it does not collide with a normal development server. It does not need a Shakapacker development-server port because its assets are static.

References: react_on_rails/…/server_manager.rb• L181-271 react_on_rails/…/server_manager.rb• L2679-2734 react_on_rails/…/server_manager.rb• L2971-3059 react_on_rails/…/server_manager.rb• L3071-3335

Process cleanup

The kill command is the reset path for a stuck local integration session. A running bin/dev records its app root, owned process group, Overmind endpoint, and selected ports in app-local session state. A later kill uses that state to control the live owner through its process group or its in-root Overmind endpoints. If no live owner remains, it can use the recorded ports as a fallback and signal only listeners whose working directory belongs to the same app root.

Shutdown is reported as verified only after the owner, process group, all relevant Overmind endpoints, and port listeners are observed to be gone. Overmind control commands use bounded time budgets so a stalled endpoint does not prevent escalation. The shutdown scan also discovers renamed app-local Overmind sockets and treats an endpoint that cannot be inspected as a blocker. Missing, malformed, replaced, unreadable, or otherwise uncertain session state fails closed. The clean command refuses to remove generated output when shutdown is refused or cannot be verified.

The cleanup scope is limited to the current app root, selected ports, and owned socket and PID paths. pgrep remains a read-only probe for test-watch discovery and is not a source of authority for signalling processes. The default fallback follows the configured Shakapacker development-server port instead of assuming that it is always the Rails port plus one. It also checks the generated renderer Procfiles when it needs to identify a default local renderer port.

References: react_on_rails/…/server_manager.rb• L1201-1475 react_on_rails/…/server_manager.rb• L1518-1675 react_on_rails/…/server_manager.rb• L1866-1975 react_on_rails/…/server_manager.rb• L1977-1980 react_on_rails/…/node_renderer_procfile.rb• L8-30

Asset compilation and pack generation

Pack generation turns the file-system component and store layout into JavaScript entry files that register those items with React on Rails. Asset compilation then makes those entries and the configured client or server bundles available to Rails, the browser, or the server-rendering path.

The development launcher starts pack generation before the process group when the Shakapacker precompile hook does not already own that work. The same operation is available as react_on_rails:generate_packs. It skips unchanged output, removes obsolete generated files, and uses a lock so parallel test or development commands do not write the generated set at the same time.

Generated output can include component packs, store packs, a server bundle, and a server-component registration entry when React Server Components are enabled. Component and store name conflicts stop generation because two source files would otherwise claim the same public registration or output path.

This diagram shows how source files become the generated registration layer used by later asset builds.

flowchart LR
    A[Component and store source files] --> B[Discover configured source paths]
    B --> C[Check names and freshness]
    C -->|stale or missing| D[Write registration packs]
    C -->|current| E[Reuse generated output]
    D --> F[Client and server asset compilation]
    E --> F
    F --> G[Manifest and bundles for Rails or browser]

Production-assets mode uses NODE_ENV=production for the asset build. By default it keeps RAILS_ENV=development for that build so a local production bundle does not also require the full production Rails setup. --rails-env changes the environment for the precompile step only; the Procfile still controls the server processes.

References: react_on_rails/…/pack_generator.rb• L27-57 react_on_rails/…/packs_generator.rb• L53-151 react_on_rails/…/packs_generator.rb• L174-202 react_on_rails/…/generate_packs.rake• L4-49 react_on_rails/…/server_manager.rb• L1112-1185

Compilation checks

The test helper prevents integration tests from using missing or old generated assets. It checks the configured source files against the manifest and generated files. It compiles once per test process when output is stale, then reuses the result for later examples.

Static development has a special fast path. If its files are fresh and its manifest contains file paths rather than HMR URLs, the test helper can point the test configuration at that output and avoid a second build. HMR output is not reusable for this purpose because it lives in the development server's memory.

When no reusable static output exists, the helper uses build_test_command. A missing command or a failed build stops the test run with guidance to use static mode, test-watch mode, or a manual build. The status checker and compiler are replaceable so an application can adapt the check to its own build system.

References: react_on_rails/…/test_helper.rb• L5-107 react_on_rails/…/ensure_assets_compiled.rb• L23-70 react_on_rails/…/webpack_assets_status_checker.rb• L29-45 react_on_rails/…/webpack_assets_compiler.rb• L7-63 react_on_rails/…/dev_assets_detector.rb• L11-49

Doctor diagnostics

The doctor is a setup report for a Rails application using React on Rails. It checks the environment, package and gem versions, Shakapacker, key configuration files, development launchers, test setup, asset output, and optional Pro or React Server Components setup. It groups messages by check area so an engineer can fix the setup in dependency order.

The task supports human-readable output and a stable JSON report. JSON carries a schema version, stable check IDs, status and severity, details, documentation links, and remediation data. Passing and warning reports exit successfully. A failing report exits with status 1, which lets scripts and coding tools use the result as a gate.

The doctor can run the full report or select named check sections. FIX=true applies the supported package-version synchronization fix, but it does not claim to repair every finding. The RSC-specific task narrows the report to the React Server Components check.

References: react_on_rails/…/doctor.rb• L241-317 react_on_rails/…/doctor.rb• L342-475 react_on_rails/…/doctor.rake• L39-65 react_on_rails/…/doctor_schema.rb• L10-17

Diagnostic coverage

The doctor combines direct file checks with runtime and configuration checks. Its development checks focus on the server bundle, Procfiles, the executable launcher, generated-file ignore rules, and async usage. Its test checks focus on the asset build hook, test output paths, and Capybara's external-server mode.

It also checks the installed Node.js and package manager, exact React on Rails version alignment, required React packages, the selected webpack or Rspack configuration, and the relationship between Rails settings and Shakapacker output. When Shakapacker is missing from the Gemfile, its recovery guidance includes the compatible version already resolved by React on Rails, which helps prevent an install from selecting an older incompatible gem.

For Pro NodeRenderer deployments, the doctor checks whether configured VM pool capacity can hold the overlap of two renderer generations. It treats static configuration as evidence only. Unknown topology, dynamic launcher settings, invalid syntax, or a missing current-generation declaration stays unverified instead of proving live capacity. It also warns when bounded deploy manifests still reference the deprecated renderer-cache task, which signals that cache pre-seeding migration is incomplete.

When React Server Components are enabled, the doctor checks the dedicated renderer boundary, payload route, RSC bundler output, package and React compatibility, development-server settings, client-reference manifest, and generated artifacts. It also reads lockfiles to check every resolved react-server-dom-webpack copy against the known RSC security fixes. A failure in this chain can appear as a missing payload, an empty client manifest, or a vulnerable package resolution instead of a Rails boot error.

Configuration analysis also examines non-partial Rails layouts using conservative static evidence. When it can prove that an auto-loaded component entrypoint emits CSS while a React layout flushes JavaScript without flushing styles, it reports the generated entrypoint and CSS assets. Dynamic or ambiguous templates do not produce this warning.

The doctor follows the active asset bundler when it describes development commands. It uses webpack labels for webpack apps and neutral Rspack labels for Rspack apps. A command-level SHAKAPACKER_ASSETS_BUNDLER override takes effect only for the supported bundlers; an unsupported value falls back to the configured bundler. The doctor reads the Shakapacker configuration once per diagnosis, then reuses that result across checks. This keeps labels and checks consistent even when several checks inspect the same configuration.

Procfile checks use active shell-like command text rather than raw substring matches. The static watcher check accepts bin/shakapacker or bin/shakapacker-watch with either --watch or -w, including a flag later in the same command. It ignores comments while preserving hashes inside quotes, escaped hashes, URLs, and other command arguments. A commented-out watcher therefore does not satisfy the check, while a valid watcher does not fail because its command contains a hash.

Missing files produce a warning or error based on whether they block the related workflow. The checker supports both webpack and Rspack and uses the configured bundler when both configuration families are present.

References: react_on_rails/…/system_checker.rb• L50-159 react_on_rails/…/system_checker.rb• L162-175 react_on_rails/…/system_checker.rb• L178-309 react_on_rails/…/doctor.rb• L492-580 react_on_rails/…/doctor.rb• L642-705 react_on_rails/…/doctor.rb• L852-866 react_on_rails/…/doctor.rb• L2635-2665 react_on_rails/…/doctor.rb• L3060-3121 react_on_rails/…/doctor.rb• L3922-4000 react_on_rails/…/doctor.rb• L4603-4741 react_on_rails/…/doctor.rb• L5123-5152 react_on_rails/…/doctor.rb• L5199-5290 react_on_rails/…/doctor.rb• L1249-1303 react_on_rails/…/doctor.rb• L2081-2140 react_on_rails/…/doctor.rb• L5351-5442

Test helpers

The development test generator creates a small RSpec system-test setup for local integration work. It can add a server-rendering example and an RSC example, and it adds the test gems and local package link needed by generated examples.

The runtime test helper is separate from the generator. It belongs in the application's RSpec configuration and marks the examples that need compiled assets. Together, these tools give a new integration a known test entry point while allowing an existing application to use only the asset check it needs.

References: react_on_rails/…/dev_tests_generator.rb• L8-54 react_on_rails/…/dev_tests_generator.rb• L57-89 react_on_rails/…/test_helper.rb• L11-50

Guardrails

Guardrails turn unsafe local conditions into a clear stop or warning before they reach Rails, the asset bundler, or a renderer. They cover command paths, environment values, generated output, configuration shape, and optional safeguards for AI coding tools.

The launcher validates Procfile paths and passes runtime port and renderer values explicitly when it leaves Bundler context. Pack generation serializes writes and rejects component or store naming conflicts. Shutdown records app ownership, signals only positively attributed processes, and refuses to claim success when ownership, endpoint liveness, or port liveness cannot be verified. Cleanup accepts only paths inside the app root and avoids broad targets. These checks protect local integration work without changing the main rendering contracts.

Pro configuration migration

The standalone Pro setup flow prepares the Node renderer and the bundler settings needed for Pro server rendering. It upgrades the active webpack or Rspack configuration pair only when both files match a supported generated pair, so a normal generated app can receive the matching Pro settings without the generator interpreting application JavaScript.

Customized, incomplete, unknown, historical, or ambiguous pairs remain unchanged, including their file names. The generator reports that it skipped the update and points to manual migration guidance. This preserves local changes, but the application must complete that migration before it builds and verifies server rendering. A recognized pair that already has Pro settings remains unchanged on later runs.

References: react_on_rails/…/generated_webpack_config_pair.rb• L8-32 react_on_rails/…/generated_webpack_config_pair.rb• L35-82 react_on_rails/…/pro_setup.rb• L433-489 react_on_rails/…/USAGE• L16-28

The RSC guardrail task installs an application-local Claude Code skill and an advisory PostToolUse hook. The files warn an AI coding agent about unsafe RSC routes, trusted props, renderer exposure, and secret leaks. Installation validates the existing settings file before copying anything, updates only managed hook entries, and writes settings atomically. Re-running the task is safe and updates managed files after a React on Rails upgrade.

References: react_on_rails/…/agent_guardrails.rb• L7-65 react_on_rails/…/agent_guardrails.rb• L113-187 react_on_rails/…/agent_guardrails.rake• L5-19

This page is a child of Rails integration and application lifecycle. Read Rails engine, configuration, and setup for the settings that these tools inspect, JavaScript runtime and component registration for the runtime that generated packs register, component rendering and hydration for the browser path after asset loading, and server-rendering protocol and Ruby bridge for the renderer boundary.

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the port offsets aligned across PortSelector, the Procfiles, renderer settings, and the process cleanup port list. Include the actual Shakapacker development-server port when it is configured instead of assuming PORT + 1.
  • Keep the launcher mode rules aligned with ServerMode, the Procfiles, and the doctor checks that describe each mode.
  • When generated pack names or locations change, update freshness checks, cleanup expectations, server-bundle imports, and test asset paths together.
  • When the test output path or manifest behavior changes, verify the static-asset reuse rule does not accept HMR URLs or stale files.
  • Treat doctor check IDs and JSON fields as automation contracts. Add new IDs for new checks instead of renaming existing ones.
  • Keep the doctor schema metadata aligned with every check ID. A new or renamed check must have the matching remediation files and expected end state.
  • Keep the precompile hook skip signal consistent between bin/dev, Shakapacker child processes, and supported Shakapacker versions.
  • Keep the dev-session ownership record, process-group or Overmind shutdown path, port attribution, and final liveness verification aligned. A live owner without a trusted process group or endpoint must remain a refusal, not a port-scan fallback.
  • Keep Overmind endpoint discovery, path containment, bounded control commands, and post-shutdown rescans aligned. A renamed or unprobeable app-local socket must not become an unverified success.
  • Keep Shakapacker recovery guidance aligned with PackerUtils.shakapacker_version and the installer so diagnostics do not recommend an older unresolved gem.
  • Keep NodeRenderer rollout checks aligned with the launcher path, renderer configuration, generation manifest declaration, and the per-worker capacity needed for generation overlap. Do not describe static configuration evidence as proof of live capacity.
  • Keep the deprecated renderer-cache scan bounded to known deploy paths and keep its migration guidance aligned with the unified pre-seeding task.
  • Keep the RSC doctor checks aligned with the renderer mode, payload route, bundler config, client manifest, artifact generation, and lockfile security-advisory contracts.
  • Keep RSC lockfile advisory thresholds aligned with the patched react-server-dom-webpack releases and report unknown or missing lockfile evidence as unverified rather than safe.
  • When managed RSC guardrail files change, preserve settings-file validation, hook de-duplication, and atomic writes.
  • Keep Pro configuration migration aligned with the full generated-pair recognizer, supported webpack/Rspack variants, filename preservation, and the manual migration warning. Do not reintroduce text-pattern rewrites for customized JavaScript.
  • Keep the public process execution path aligned with both development startup and Overmind control. Preserve the Bundler-context fallback and the runtime environment values that port and renderer selection created.
  • Keep static watcher detection aligned with the accepted binstub names, --watch and -w forms, same-command boundary, and shell comment rules. Do not replace active-command parsing with a raw substring check.
  • Keep bundler labels aligned with the configured or supported command-level bundler override. An unsupported override must not make the doctor describe the wrong asset service.
  • Keep per-diagnosis Shakapacker configuration reuse local to Doctor. Do not share memoized configuration across server-manager calls or separate doctor runs.

Important failure modes

TriggerConsequenceGuard
A base port or explicit service port is invalid or already usedRails, the asset server, or the renderer cannot bind to the addressStrict port validation, loopback probing, derived-port warnings, and clean bin/dev kill cleanup
HMR output is used as test outputTests read URLs owned by a running dev server or use stale in-memory codeHMR manifest detection rejects reuse; static mode or test-watch supplies disk-backed test assets
build_test_command is absent or failsAn integration test run stops without current JavaScript assetsThe test compiler fails early and reports the configured alternatives
Generated component or store names collideA generated pack or registration entry would overwrite another public namePack generation raises an error before writing the generated set
A required Procfile or process manager is missingThe launcher cannot start the complete local service groupProcfile validation and Overmind-to-Foreman fallback report the missing dependency
A process manager works only outside Bundler and runtime env values are not passed throughA child process loses selected ports or renderer settings and can start with stale defaultsBundler-aware lookup plus explicit preservation and unsetting of runtime environment keys
Doctor finds a gem/npm version mismatchThe app can fail at startup even though both package managers completed installExact-version and cross-package checks report the mismatch and provide a sync path
.dev-services.yml reports a stopped required serviceThe launcher exits before Rails startsService checks show the failed command and an optional start or install hint
Dev-session state is malformed, replaced, unreadable, or owned by another app rootbin/dev kill refuses to signal or report a verified shutdownApp-root identity, file locks, regular-file checks, replacement checks, and fail-closed shutdown status
A live owner has no trusted process group or Overmind endpointbin/dev kill refuses to signal it rather than risking another processThe owner record must provide a usable process group or in-root endpoint; the port fallback is reserved for released owners
An Overmind endpoint is renamed, unreachable, or discovered after the first shutdown scanbin/dev kill cannot prove that the process group and its workers are goneIn-root socket discovery, bounded endpoint probes, control-time budgets, and a final endpoint rescan block verification
A port or Overmind liveness probe is unavailableA surviving process may be missed, so shutdown cannot be verifiedUnavailable probes become blockers; kill exits non-zero and clean leaves generated output in place
Pro setup sees a customized, unsupported, incomplete, or ambiguous config pairAutomatic Pro migration is skipped and SSR setup may remain incomplete until manual work is doneWhole-pair recognition leaves both files and their paths unchanged and prints manual migration guidance
NodeRenderer rollout capacity is below the required overlap or cannot be proven from configurationA renderer rollout can exhaust per-worker VM capacity or leave prewarming risk unknownDoctor reports required versus observed capacity, warns on unverified evidence, and checks the current-generation declaration without claiming live-process proof
A deploy manifest still calls the deprecated renderer-cache taskCache preparation can follow an old path during image or same-filesystem deploy workDoctor scans a bounded set of deploy files and points to the unified pre-seeding task
RSC is enabled without the required renderer, route, bundle, or compatible packagesRSC payload requests can fail or the client-reference manifest can remain unusableThe RSC doctor section checks the renderer boundary, route, bundler, package versions, dev settings, and generated artifacts
The RSC lockfile resolves a vulnerable or unjudged react-server-dom-webpack versionA fresh install or deploy can include a known RSC security flaw, or the package safety state remains unknownDoctor inspects all lockfile resolutions, requires stable patched releases, and warns when lockfile evidence is missing or cannot be judged
A static watcher uses an accepted -w or --watch form but the parser treats it as a comment or unrelated commandDoctor reports missing static Procfile support even though the watcher can build filesActive Procfile parsing accepts both supported binstubs and flags only within the same shell command, while ignoring real comments
A commented-out or post-comment watcher contains the expected textDoctor falsely reports static support and may recommend a workflow that cannot write assetsComment-aware active-line parsing excludes full-line and trailing comments while preserving quoted and escaped hashes
An unsupported bundler override is accepted as the active bundlerDoctor gives misleading Procfile labels or development guidanceThe command-level override is limited to supported bundlers and otherwise falls back to configuration
Shakapacker configuration is read repeatedly or shared across doctor runsOne report can use inconsistent labels or a later app can inherit an earlier app's configurationThe doctor memoizes parsed configuration only for its own instance and tests missing, unreadable, and parsed states

Key files

FileWhy to read it
react_on_rails/…/server_manager.rbPrimary local launcher. It connects modes, checks, ports, pack generation, asset builds, browser startup, process managers, and app-scoped shutdown verification.
react_on_rails/…/port_selector.rbDefines the port priority and the workspace base-port contract.
react_on_rails/…/process_manager.rbExplains process-manager fallback and the Bundler-safe environment handoff used by startup and Overmind control.
react_on_rails/…/service_checker.rbDefines optional external-service checks before local startup.
react_on_rails/…/pack_generator.rbShows how the launcher invokes the stable pack-generation task.
react_on_rails/…/packs_generator.rbDefines generated registration output, freshness, locking, and conflict protection.
react_on_rails/…/node_renderer_procfile.rbDefines the generated local renderer commands that cleanup uses to identify a renderer port.
react_on_rails/…/test_helper.rbPublic entry point for test-time asset checks.
react_on_rails/…/ensure_assets_compiled.rbConnects stale-file detection, static output reuse, and test compilation.
react_on_rails/…/dev_assets_detector.rbDefines when static development assets can serve test runs.
react_on_rails/…/doctor.rbCoordinates human and machine-readable setup diagnosis, including bundler-aware Procfile descriptions, active static watcher detection, runtime configuration analysis, Pro rollout checks, deprecated cache migration checks, RSC checks, and lockfile-based RSC security checks.
react_on_rails/…/doctor_schema.rbDefines the stable JSON report contract, check metadata, remediation shape, and exit semantics for automation.
react_on_rails/…/system_checker.rbProvides the environment, package, bundler, and integration checks used by the doctor, including compatible Shakapacker recovery guidance.
react_on_rails/lib/tasks/doctor.rakeDefines the full and RSC-only doctor tasks and their environment-based output and selection options.
react_on_rails/…/doctor_spec.rbShows the contracts for JSON reports, configuration reuse, bundler labels, runtime bundle settings, and shell-aware static watcher detection.
react_on_rails/…/pro_setup.rbCoordinates Pro files, renderer process entries, and safe generated configuration migration during local setup.
react_on_rails/…/generated_webpack_config_pair.rbDefines which complete generated webpack or Rspack configuration pairs can receive automatic Pro settings.
react_on_rails/lib/generators/react_on_rails/pro/USAGEStates the user-facing limits of automatic Pro configuration migration and the manual path for skipped pairs.
react_on_rails/…/agent_guardrails.rbInstalls and safely updates the optional RSC coding-agent guardrails.