refactor: use new analytics server

This commit is contained in:
Kim, Jimin 2024-09-09 11:04:45 +09:00
parent 8714c1a9be
commit 2cfa1d7a7d
Signed by: pomp
GPG key ID: 2B516173EDD492EB
4 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@ const nextConfig = {
return [
{
source: "/stats/:match*",
destination: "https://analytics.umami.is/:match*",
destination: "https://umami.developomp.com/:match*",
},
]
},

View file

@ -66,7 +66,7 @@ export default function RootLayout({
async
defer
src="/stats/script.js"
data-website-id="aa2eb701-74e2-4d81-ad27-9de6850b7f50"
data-website-id="361a9f07-a09b-49a0-b7e4-f1fc7caff9e2"
></script>
</head>

View file

@ -27,7 +27,7 @@
async
defer
src="/stats/script.js"
data-website-id="3cecce37-5899-497f-9bbc-f7dafb5cae30"
data-website-id="783ea016-943a-47a4-b7e7-a9b9fbd786a9"
></script>
%sveltekit.head%

View file

@ -14,9 +14,9 @@ export default defineConfig({
proxy: {
// https://umami.is/docs/guides/bypass-ad-blockers
// https://vitejs.dev/config/server-options.html#server-proxy
// https://developomp.com/stats/* -> https://analytics.umami.is/*
// https://developomp.com/stats/* -> https://umami.developomp.com/*
"^/stats/.*": {
target: "https://analytics.umami.is/",
target: "https://umami.developomp.com/",
changeOrigin: true,
rewrite: (path) => path.slice(6), // slice "/stats" off the string (which is 6 characters long)
},