Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/tabler/tabler into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
codecalm committed Oct 26, 2022
2 parents ff199c3 + 65b0ad7 commit b5d8ecf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/_includes/layout/analytics.html
@@ -1 +1 @@
<script defer data-domain="{{ site.preview-url | replace: 'https://', '' }}" src="https://plausible.io/js/plausible.js"></script>
<script defer data-api="/stats/api/event" data-domain="{{ site.preview-url | replace: 'https://', '' }}" src="/stats/js/script.js"></script>
16 changes: 13 additions & 3 deletions vercel.json
@@ -1,6 +1,16 @@
{
"routes": [
{ "handle": "filesystem" },
{ "src": "/(.*)", "status": 404, "dest": "/error-404.html" }
"rewrites": [
{
"source": "/stats/js/script.js",
"destination": "https://plausible.io/js/script.js"
},
{
"source": "/stats/api/event",
"destination": "https://plausible.io/api/event"
},
{
"source": "/(.*)",
"destination": "/error-404.html"
}
]
}

0 comments on commit b5d8ecf

Please sign in to comment.