all repos — searchix @ 3bbb49e74b8eab7714c2df1162d086f6d731e1e8

Search engine for NixOS, nix-darwin, home-manager and NUR users

build: optionally embed frontend files

Alan Pearce
commit

3bbb49e74b8eab7714c2df1162d086f6d731e1e8

parent

00eb7541d54e76f8b55fe499d6955786927b207b

1 file changed, 2 insertions(+), 4 deletions(-)

changed files
M internal/server/server.gointernal/server/server.go
@@ -16,6 +16,7 @@ "slices"
"strconv" "time" + "searchix/frontend" cfg "searchix/internal/config" "searchix/internal/importer" "searchix/internal/options"
@@ -243,10 +244,7 @@ http.Error(w, err.Error(), http.StatusInternalServerError)
} }) - mux.Handle( - "/static/", - http.StripPrefix("/static/", http.FileServer(http.Dir("frontend/static"))), - ) + mux.Handle("/static/", http.FileServer(http.FS(frontend.Files))) if runtimeConfig.LiveReload { applyDevModeOverrides(config)