Skip to content

Commit

Permalink
actually fix mutable shortlinks (#904)
Browse files Browse the repository at this point in the history
now tested with:

    nix build && nix-shell -p netlify-cli --run "cd result; netlify dev"
  • Loading branch information
fricklerhandwerk authored Feb 6, 2024
1 parent 2720a41 commit 1f6a121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ let
sed '/^#/d;/^$/d;s#^\(.*\) \(.*\) #/manual/nix/${version}\1 /manual/nix/${version}\2 #g' ${src version}/doc/manual/_redirects >> $out/_redirects
'';
shortlink = release: version: ''
echo /nix/manual/${release} /nix/manual/${version} 302 >> $out/_redirects
echo /manual/nix/${release} /manual/nix/${version}/ 302 >> $out/_redirects
'';
versions = with pkgs.lib; lists.unique (attrsets.attrValues releases);
in
Expand Down

0 comments on commit 1f6a121

Please sign in to comment.