Skip to content

Commit f693de0

Browse files
authored
update export checkpoints to new vite (#6026)
1 parent fad67cf commit f693de0

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

reflex/utils/build.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ def build():
199199
path_ops.rm(str(wdir / constants.Dirs.BUILD_DIR))
200200

201201
checkpoints = [
202-
"building for production",
203-
"building SSR bundle for production",
202+
"building client environment for production...",
203+
"modules transformed",
204+
"building ssr environment for production...",
204205
"built in",
205206
]
206207

reflex/utils/processes.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,11 +450,12 @@ def show_progress(message: str, process: subprocess.Popen, checkpoints: list[str
450450
task = progress.add_task(f"{message}: ", total=len(checkpoints))
451451
for line in stream_logs(message, process, progress=progress):
452452
# Check for special strings and update the progress bar.
453-
special_string = checkpoints[0]
454-
if special_string in line:
455-
progress.update(task, advance=1)
456-
checkpoints.pop(0)
457-
if not checkpoints:
453+
while checkpoints:
454+
special_string = checkpoints[0]
455+
if special_string in line:
456+
progress.update(task, advance=1)
457+
checkpoints.pop(0)
458+
continue
458459
break
459460

460461

0 commit comments

Comments
 (0)