docs: allow privacy friendly analytics in docs page and set hsts (#3006)

* chore: prepare deployment to netlify instead of cloudflare

* add badge
This commit is contained in:
Florian Forster
2022-01-18 09:04:48 +01:00
committed by GitHub
parent 456d32dd0d
commit 311df70a3f
2 changed files with 25 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
[build]
command = "npm run build"
[[redirects]]
from = "/proxy/js/script.js"
to = "https://plausible.io/js/plausible.js"
status = 200
force = true
[[redirects]]
from = "/proxy/api/event"
to = "https://plausible.io/api/event"
status = 202
force = true
[[headers]]
for = "/*"
[headers.values]
Strict-Transport-Security = '''
max-age=31536000;
includeSubDomains;
preload'''