fix(dev): keep Fast Refresh enabled under process managers

This commit is contained in:
2026-10-06 16:52:51 -03:00
parent 65c965ae6b
commit c8f8aff8c7
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -146,6 +146,8 @@ fi
(
cd "$FRONTEND_DIR"
# Keep React Fast Refresh enabled even if PM2 exports NODE_ENV=production.
export NODE_ENV=development
exec setsid node node_modules/vite/bin/vite.js --host "$UI_HOST" --port "$UI_PORT" --strictPort
) &
frontend_pid=$!