Skip to content

Commit

Permalink
fix: serve the built index.html file by default in ui handler (#191)
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams authored Oct 15, 2024
1 parent a44ea9d commit ade8ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ func serve(w http.ResponseWriter, r *http.Request) {
if _, err := fs.Stat(embedded, path); err == nil {
http.ServeFileFS(w, r, embedded, path)
} else {
http.ServeFileFS(w, r, embedded, "static/index.html")
http.ServeFileFS(w, r, embedded, "admin/build/client/index.html")
}
}

0 comments on commit ade8ce4

Please sign in to comment.