From cb9db75dfb2dae568958a8b5c1db063e9d519754 Mon Sep 17 00:00:00 2001 From: Willie Date: Mon, 16 Feb 2026 12:29:53 +0800 Subject: [PATCH] fix: improve dev mode placeholder with actionable instructions Show exact commands (cd ui && pnpm run dev, make ui-dev) instead of a vague mention of Vite, so developers know how to start the frontend. --- internal/server/spa_disk.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/internal/server/spa_disk.go b/internal/server/spa_disk.go index a66c6dda3..51ab12ab2 100644 --- a/internal/server/spa_disk.go +++ b/internal/server/spa_disk.go @@ -14,11 +14,19 @@ func uiPlaceholderHandler() http.Handler { w.Header().Set("Content-Type", "text/html; charset=utf-8") w.Write([]byte(` -Skillshare UI +Skillshare UI (dev mode) + + -

Skillshare UI

-

The frontend is served by Vite at localhost:5173 in dev mode.

-

In production, run skillshare ui to download and launch the web dashboard.

+

Skillshare UI — Dev Mode

+

This is the API server. The frontend needs to be started separately:

+
cd ui && pnpm run dev
+

Then open http://localhost:5173 (Vite proxies /api to this server).

+

Or use make ui-dev to start both together.

+
+

In production builds, skillshare ui downloads and serves the frontend automatically.

`)) })