diff options
author | Alan Pearce | 2024-04-19 22:51:03 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-19 22:51:03 +0200 |
commit | 4c80a0b2acb578e5a8bfe311591a85ac19527220 (patch) | |
tree | c8f4b62c405fc930e3709c97eeaaa5c2985400f6 /netlify | |
parent | 0d1de2258553f16c9cd492f02f591c4d5457f958 (diff) | |
download | website-4c80a0b2acb578e5a8bfe311591a85ac19527220.tar.lz website-4c80a0b2acb578e5a8bfe311591a85ac19527220.tar.zst website-4c80a0b2acb578e5a8bfe311591a85ac19527220.zip |
Use netlify for redirects
Diffstat (limited to 'netlify')
-rw-r--r-- | netlify/netlify.toml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/netlify/netlify.toml b/netlify/netlify.toml new file mode 100644 index 0000000..7b203eb --- /dev/null +++ b/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" |