Skip to content

Commit

Permalink
chore(docs): remove analytics proxy from preview (#4842)
Browse files Browse the repository at this point in the history
* chore(docs): analytics proxy fix

* Update netlify.toml
  • Loading branch information
fforootd committed Dec 6, 2022
1 parent 065250a commit a1dfe02
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions docs/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,15 @@
[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]]
from = "/docs/*"
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]
Strict-Transport-Security = '''
max-age=31536000;
includeSubDomains;
preload'''

[[redirects]]
from = "/quickstarts/introduction"
to = "/examples/introduction"
status = 301

0 comments on commit a1dfe02

Please sign in to comment.