Skip to content

Commit cd1a9e1

Browse files
authored
make run dev run react router dev instead of vite dev (#5460)
1 parent d62c944 commit cd1a9e1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

reflex/constants/installer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class PackageJson(SimpleNamespace):
104104
class Commands(SimpleNamespace):
105105
"""The commands to define in package.json."""
106106

107-
DEV = "vite dev"
107+
DEV = "react-router dev"
108108
EXPORT = "react-router build"
109109
PROD = "serve ./build/client"
110110

reflex/utils/processes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ def stream_logs(
320320

321321
# Windows uvicorn bug
322322
# https://github.com/reflex-dev/reflex/issues/2335
323-
accepted_return_codes = [0, -2, 15] if constants.IS_WINDOWS else [0, -2]
323+
# 130 is the exit code that react router returns when it is interrupted by a signal.
324+
accepted_return_codes = [0, -2, 15, 130] if constants.IS_WINDOWS else [0, -2, 130]
324325
if process.returncode not in accepted_return_codes and not suppress_errors:
325326
console.error(f"{message} failed with exit code {process.returncode}")
326327
if "".join(logs).count("CERT_HAS_EXPIRED") > 0:

0 commit comments

Comments
 (0)