@smbcloud / cli / commits / 757a985

Improve NodeJs runner detection with config file checks

Seto Elkahfi committed Jun 29, 2025 at 01:04 UTC 757a9854db5aaadab0378de822c925c23bd41e36
1 file changed +6 -1
crates/cli/src/project/runner.rs
+6 -1
@@ -28,7 +28,12 @@ pub(crate) async fn detect_runner() -> Result<Runner> {
28 succeed_message("Checking runner"),
29 );
30
31 - if Path::new("package.json").exists() {
31 + if Path::new("package.json").exists()
32 + && (Path::new("next.config.js").exists()
33 + || Path::new("next.config.ts").exists()
34 + || Path::new("next.config.mjs").exists()
35 + || Path::new("astro.config.mjs").exists())
36 + {
37 spinner.stop_and_persist(
38 &succeed_symbol(),
39 succeed_message("NodeJs 🟩 runner detected"),