diff --git a/reflex/utils/build.py b/reflex/utils/build.py index 152b49477be..7b7408f8b3b 100644 --- a/reflex/utils/build.py +++ b/reflex/utils/build.py @@ -199,8 +199,9 @@ def build(): path_ops.rm(str(wdir / constants.Dirs.BUILD_DIR)) checkpoints = [ - "building for production", - "building SSR bundle for production", + "building client environment for production...", + "modules transformed", + "building ssr environment for production...", "built in", ] diff --git a/reflex/utils/processes.py b/reflex/utils/processes.py index 1ad889129a5..119f46e83f4 100644 --- a/reflex/utils/processes.py +++ b/reflex/utils/processes.py @@ -450,11 +450,12 @@ def show_progress(message: str, process: subprocess.Popen, checkpoints: list[str task = progress.add_task(f"{message}: ", total=len(checkpoints)) for line in stream_logs(message, process, progress=progress): # Check for special strings and update the progress bar. - special_string = checkpoints[0] - if special_string in line: - progress.update(task, advance=1) - checkpoints.pop(0) - if not checkpoints: + while checkpoints: + special_string = checkpoints[0] + if special_string in line: + progress.update(task, advance=1) + checkpoints.pop(0) + continue break