NixOS / nix.dev

Official documentation for getting things done with Nix.
https://nix.dev
Creative Commons Attribution Share Alike 4.0 International
2.26k stars 238 forks source link

proxy development version of the Nix manual #988

Closed fricklerhandwerk closed 1 month ago

fricklerhandwerk commented 1 month ago

this avoids exposing an ugly URL and allows us to move things around later

Made with @roberth at #ZurichZHF

fricklerhandwerk commented 1 month ago

@infinisil @roberth apparently proxying doesn't work in the live deployment either, it's just a 302 redirect.

$ curl -I https://nix.dev/manual/nix/development
HTTP/2 302
age: 1
cache-status: "Netlify Edge"; fwd=miss
content-type: text/html; charset=utf-8
date: Sun, 26 May 2024 19:01:29 GMT
location: https://hydra.nixos.org/build/261304987/download
netlify-vary: query
server: Netlify
set-cookie: hydra_session=98cabe9914f21a207f36894eb80485db413012de; path=/; expires=Sun, 02-Jun-2024 19:01:29 GMT; HttpOnly; SameSite=Lax
strict-transport-security: max-age=31536000
x-nf-request-id: 01HYV4EYRE3Z5GR8J5T6WM09TB
content-length: 332