chore(docs): remove analytics proxy from preview (#4842)

* chore(docs): analytics proxy fix

* Update netlify.toml
This commit is contained in:
Florian Forster 2022-12-06 22:48:09 +01:00 committed by GitHub
parent 065250a108
commit a1dfe02cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,3 @@
[build]
command = "npm run build"
# This is a workaround to address the problem around the baseUrl from docusaurus
# Be aware that this prevents the usage of the path /docs/docs
[[redirects]]
@ -8,19 +5,7 @@
to = "/:splat"
status = 200
force = true
[[redirects]]
from = "/proxy/js/script.js"
to = "https://plausible.io/js/script.outbound-links.js"
status = 200
force = true
[[redirects]]
from = "/proxy/api/event"
to = "https://plausible.io/api/event"
status = 202
force = true
[[headers]]
for = "/*"
[headers.values]
@ -28,8 +13,3 @@
max-age=31536000;
includeSubDomains;
preload'''
[[redirects]]
from = "/quickstarts/introduction"
to = "/examples/introduction"
status = 301