compress the index.html page

This commit is contained in:
2026-01-10 21:09:23 +02:00
parent 37b9958a8c
commit ccebdcb41b

View File

@@ -366,9 +366,21 @@ in
'';
"jakstys.lt".extraConfig =
let
jakstysLandingPage = pkgs.runCommand "jakstys-landing-page" { } ''
jakstysLandingPage =
pkgs.runCommand "jakstys-landing-page"
{
nativeBuildInputs = with pkgs; [
zstd
brotli
zopfli
];
}
''
mkdir -p $out
cp ${../../jakstys.lt.html} $out/index.html
zstd -k -19 $out/index.html
brotli -k $out/index.html
zopfli -k $out/index.html
'';
in
''