diff options
author | Alan Pearce | 2024-05-31 18:20:43 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-01 19:38:22 +0200 |
commit | 39f7b2de1982d93da413a740fe56eaed404960c9 (patch) | |
tree | c8f1bcaccbf2c40b8579489859e94ca34577b0d8 | |
parent | 4aef976fbd1c1f8fd2da4900d3a8d3fb6ea6eb8c (diff) | |
download | zola-bearblog-39f7b2de1982d93da413a740fe56eaed404960c9.tar.lz zola-bearblog-39f7b2de1982d93da413a740fe56eaed404960c9.tar.zst zola-bearblog-39f7b2de1982d93da413a740fe56eaed404960c9.zip |
add initial support for deploying on vercel
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | vercel.json | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 87174b6..02e3efd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /public/ +.vercel diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..071f918 --- /dev/null +++ b/vercel.json @@ -0,0 +1,42 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "framework": "zola", + "build": { + "env": { + "ZOLA_VERSION": "0.18.0" + } + }, + "cleanUrls": true, + "trailingSlash": true, + "headers": [ + { + "source": "/(.*)", + "headers": [ + { + "key": "X-Frame-Options", + "value": "DENY" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "Referrer-Policy", + "value": "strict-origin-when-cross-origin" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=63072000; includeSubDomains; preload" + }, + { + "key": "Content-Security-Policy", + "value": "default-src 'none'; img-src 'self'; object-src 'none'; script-src 'none'; style-src 'sha256-p5EfRIhWJi7Zh7WJil3mpIVCZvcu+zebWbMe6B0so8A='; form-action 'none'; base-uri 'self'; frame-ancestors 'none'" + } + ] + } + ] +} |