提交 98df8891 编写于 作者: C codecalm

vercel config fix

上级 e9f5df4f
<script defer data-domain="{{ site.preview-url | replace: 'https://', '' }}" src="https://plausible.io/js/plausible.js"></script>
\ No newline at end of file
<script defer data-api="/stats/api/event" data-domain="{{ site.preview-url | replace: 'https://', '' }}" src="/js/script.js"></script>
\ No newline at end of file
......@@ -2,5 +2,15 @@
"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"
}
]
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册