diff --git a/deployment/src/main/java/io/quarkiverse/quinoa/deployment/framework/override/NextFramework.java b/deployment/src/main/java/io/quarkiverse/quinoa/deployment/framework/override/NextFramework.java
index e3a6a418..6c823510 100644
--- a/deployment/src/main/java/io/quarkiverse/quinoa/deployment/framework/override/NextFramework.java
+++ b/deployment/src/main/java/io/quarkiverse/quinoa/deployment/framework/override/NextFramework.java
@@ -25,9 +25,10 @@ public QuinoaConfig override(QuinoaConfig delegate, Optional<JsonObject> package
         if (delegate.packageManagerCommand().build().equals("run build") && packageJson.isPresent()) {
             JsonObject scripts = packageJson.get().getJsonObject("scripts");
             if (scripts != null) {
-                if (!scripts.getString("build").contains("next export")) {
+                String buildScript = scripts.getString("build");
+                if (buildScript == null || buildScript.isEmpty()) {
                     LOG.warn(
-                            "Make sure you define  \"build\": \"next build && next export\", in the package.json to make Next work with Quinoa.");
+                        "Make sure you define  \"build\": \"next build \", in the package.json to make Next work with Quinoa.");
                 }
             }
         }