diff --git a/v2/pkg/commands/build/base.go b/v2/pkg/commands/build/base.go index 0196d6f4..022495a1 100644 --- a/v2/pkg/commands/build/base.go +++ b/v2/pkg/commands/build/base.go @@ -520,7 +520,14 @@ func (b *BaseBuilder) BuildFrontend(outputLogger *clilogger.CLILogger) error { } // Check if there is a build command - if b.projectData.BuildCommand == "" { + var buildCommand string + switch b.projectData.OutputType { + case "dev": + buildCommand = b.projectData.DevCommand + default: + buildCommand = b.projectData.BuildCommand + } + if buildCommand == "" { outputLogger.Println("No Build command. Skipping.") // No - ignore return nil