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 # 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 # Be aware that this prevents the usage of the path /docs/docs
[[redirects]] [[redirects]]
@ -9,18 +6,6 @@
status = 200 status = 200
force = true 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]] [[headers]]
for = "/*" for = "/*"
[headers.values] [headers.values]
@ -28,8 +13,3 @@
max-age=31536000; max-age=31536000;
includeSubDomains; includeSubDomains;
preload''' preload'''
[[redirects]]
from = "/quickstarts/introduction"
to = "/examples/introduction"
status = 301