diff --git a/app/ui/app.go b/app/ui/app.go index d73df2c02..c30b34454 100644 --- a/app/ui/app.go +++ b/app/ui/app.go @@ -33,7 +33,10 @@ func (s *Server) appHandler() http.Handler { data, err := fs.ReadFile(fsys, "index.html") if err != nil { if errors.Is(err, fs.ErrNotExist) { - http.NotFound(w, r) + // Development mode: UI not built + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(http.StatusNotFound) + w.Write([]byte("UI not built. Run 'npm run build' in app/ui/app directory.")) } else { http.Error(w, "Internal Server Error", http.StatusInternalServerError) } diff --git a/app/ui/app/dist/README.md b/app/ui/app/dist/README.md new file mode 100644 index 000000000..468773052 --- /dev/null +++ b/app/ui/app/dist/README.md @@ -0,0 +1 @@ +This directory contains the built React app. Run `npm run build` in the app directory to generate the build.