From 885b0a3db334c2f7ae4b87a4ef6b7c0e8db103de Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Wed, 25 Feb 2026 20:24:33 -0500 Subject: [PATCH] Fix spacetime dev using debug builds for client process detect_client_command() returned 'cargo run' for Rust clients and 'dotnet run' for C# clients, which default to debug builds. The server module was already built with --release, creating a mismatch. Change to 'cargo run --release' and 'dotnet run --configuration Release' so the client process matches the server module's release build. Also update for_client_lang() which generates the same commands for spacetime.json configs. --- crates/cli/src/spacetime_config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/cli/src/spacetime_config.rs b/crates/cli/src/spacetime_config.rs index 2d17e2eff3d..29137f75a11 100644 --- a/crates/cli/src/spacetime_config.rs +++ b/crates/cli/src/spacetime_config.rs @@ -866,8 +866,8 @@ impl SpacetimeConfig { pub fn for_client_lang(client_lang: &str, package_manager: Option) -> Self { let run_command = match client_lang.to_lowercase().as_str() { "typescript" => package_manager.map(|pm| pm.run_dev_command()).unwrap_or("npm run dev"), - "rust" => "cargo run", - "csharp" | "c#" => "dotnet run", + "rust" => "cargo run --release", + "csharp" | "c#" => "dotnet run --configuration Release", _ => "npm run dev", // default fallback }; Self { @@ -1161,14 +1161,14 @@ pub fn detect_client_command(project_dir: &Path) -> Option<(String, Option