Skip to content

Commit 0364df6

Browse files
authored
fix(nix): pass --try-file when running the site (#775)
1 parent f104f9f commit 0364df6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
name = "Uiua site";
7070
runtimeInputs = [ pkgs.simple-http-server ];
7171
text = ''
72-
simple-http-server --index "$@" -- ${lib.escapeShellArg self'.packages.site}
72+
cd ${lib.escapeShellArg self'.packages.site}
73+
simple-http-server --index --try-file ./404.html "$@" -- .
7374
'';
7475
};
7576
devShells.default = pkgs.mkShell {

0 commit comments

Comments
 (0)