Use netlify for redirects
Alan Pearce alan@alanpearce.eu
Fri, 19 Apr 2024 22:51:03 +0200
3 files changed, 18 insertions(+), 0 deletions(-)
M .gitignore → .gitignore
@@ -173,3 +173,6 @@ /.compressstamp /.formatstamp /server /result + +# Local Netlify folder +.netlify
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"