all repos — homestead @ 64c924a1b59394a0c270bb10a14aa250eef43a3c

Code for my website

Use netlify for redirects

Alan Pearce
commit

64c924a1b59394a0c270bb10a14aa250eef43a3c

parent

1009099dadda3497023734d8d8f531779f6fe008

3 files changed, 18 insertions(+), 0 deletions(-)

jump to
M .gitignore.gitignore
@@ -173,3 +173,6 @@ /.compressstamp
/.formatstamp /server /result + +# Local Netlify folder +.netlify
M flake.nixflake.nix
@@ -36,6 +36,7 @@ gotools
go-tools gomod2nix.packages.${system}.default gci + netlify-cli flyctl ] ++ (import ./nix/scripts.nix {
A netlify/netlify.toml
@@ -0,0 +1,14 @@
+[build] + base = "netlify" + publish = "." + +[[redirects]] + from = "*" + to = "https://alanpearce.eu/:splat" + status = 301 + force = true + +[[headers]] + for = "/*" + [headers.values] + cache-control = "max-age=86400"