You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: auto-build dashboard SPA in session-start hook (#508)
The dashboard SPA dist/ is gitignored and was never built during plugin
installation, causing the interactive dashboard to always fall back to
static HTML. Add Step 1.5 to session-start.sh that builds the dashboard
when dist/index.html is missing or stale relative to package.json.
Closes#500
if (cd "${PLUGIN_ROOT}/packages/dashboard"&& npm install --silent 2>/dev/null && npm run build --silent 2>/dev/null);then
34
+
messages="${messages:+${messages}\n}Dashboard SPA built successfully."
35
+
else
36
+
messages="${messages:+${messages}\n}Warning: Dashboard SPA build failed. The static HTML fallback will be used. To fix: cd ${PLUGIN_ROOT}/packages/dashboard && npm install && npm run build"
37
+
fi
38
+
fi
39
+
29
40
# --- Step 2: Check for updates (once per day) ---
0 commit comments