Skip to content

Commit

Permalink
Fix missing web assets
Browse files Browse the repository at this point in the history
The web assets were missing so the server only served up empty pages.
The reason was that the `web` directory that gets built with the web
assets wasn't filtered out in the original source.
  • Loading branch information
HanStolpo committed Aug 15, 2024
1 parent 6ffb39f commit e7547b5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@

craneLib = crane.lib.${system}.overrideToolchain toolchain;

src = "${openobserve-src}";
src =
# filter out the web directory which gets built and linked in later
let f = name: type:
with builtins;
with pkgs.lib;
let baseName = baseNameOf (toString name);
in !(type == "directory" && baseName == "web");
in pkgs.lib.cleanSourceWith {filter = f; src = "${openobserve-src}";};

# Common arguments can be set here to avoid repeating them later
commonArgs = {
Expand Down

0 comments on commit e7547b5

Please sign in to comment.