Explorar o código

feat: update analytics event source path in Vercel configuration

codecalm hai 4 meses
pai
achega
bf750451f1

+ 1 - 1
docs/vercel.json

@@ -6,7 +6,7 @@
       "destination": "https://plausible.io/js/script.js"
       "destination": "https://plausible.io/js/script.js"
     },
     },
     {
     {
-      "source": "/stats/api/event",
+      "source": "/stats/event",
       "destination": "https://plausible.io/api/event"
       "destination": "https://plausible.io/api/event"
     },
     },
     {
     {

+ 1 - 1
preview/vercel.json

@@ -5,7 +5,7 @@
       "destination": "https://plausible.io/js/script.js"
       "destination": "https://plausible.io/js/script.js"
     },
     },
     {
     {
-      "source": "/stats/api/event",
+      "source": "/stats/event",
       "destination": "https://plausible.io/api/event"
       "destination": "https://plausible.io/api/event"
     },
     },
     {
     {

+ 1 - 1
shared/includes/layout/analytics.html

@@ -1 +1 @@
-<script defer data-api="/stats/api/event" data-domain="preview.tabler.io" src="/stats/js/script.js"></script>
+<script defer data-api="/stats/event" data-domain="preview.tabler.io" src="/stats/js/script.js"></script>

+ 1 - 1
shared/layouts/docs/default.html

@@ -6,7 +6,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1.0">
 	<meta name="viewport" content="width=device-width, initial-scale=1.0">
 	<title>Tabler Documentation - {{ title }}</title>
 	<title>Tabler Documentation - {{ title }}</title>
 
 
-	<script defer data-api="/stats/api/event" data-domain="docs.tabler.io" src="/stats/js/script.js"></script>
+	<script defer data-api="/stats/event" data-domain="docs.tabler.io" src="/stats/js/script.js"></script>
 
 
 	<link rel="stylesheet" href="/dist/css/tabler{% if environment != 'development' %}.min{% endif %}.css{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}" />
 	<link rel="stylesheet" href="/dist/css/tabler{% if environment != 'development' %}.min{% endif %}.css{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}" />
 	{% for plugin in site.cssPlugins %}
 	{% for plugin in site.cssPlugins %}