Skip to content

Commit

Permalink
vercel script rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Apr 13, 2023
1 parent d576da8 commit 094f87a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/GA.astro
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<script type="text/partytown" defer data-domain="undb.xyz" src="https://plausible.io/js/script.js"></script>
<script type="text/partytown" defer data-domain="undb.xyz" src="/stats/js/script.js" data-api="/stats/api/event"
></script>
12 changes: 12 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"rewrites": [
{
"source": "/stats/js/script.js",
"destination": "https://plausible.io/js/script.js"
},
{
"source": "/stats/api/event",
"destination": "https://plausible.io/api/event"
}
]
}

1 comment on commit 094f87a

@vercel
Copy link

@vercel vercel bot commented on 094f87a Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

www – ./

www-undb.vercel.app
www-git-main-undb.vercel.app
www-zeta-six.vercel.app
undb.xyz
www.undb.xyz

Please sign in to comment.