diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | flake.nix | 1 | ||||
-rw-r--r-- | netlify/netlify.toml | 14 |
3 files changed, 18 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 7dc1da8..3a95bfb 100644 --- a/.gitignore +++ b/.gitignore @@ -173,3 +173,6 @@ dist /.formatstamp /server /result + +# Local Netlify folder +.netlify diff --git a/flake.nix b/flake.nix index c97f348..2d15ecb 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,7 @@ go-tools gomod2nix.packages.${system}.default gci + netlify-cli flyctl ] ++ (import ./nix/scripts.nix { 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" |