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"),