refactor: use new analytics server
This commit is contained in:
parent
8714c1a9be
commit
2cfa1d7a7d
4 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ const nextConfig = {
|
|||
return [
|
||||
{
|
||||
source: "/stats/:match*",
|
||||
destination: "https://analytics.umami.is/:match*",
|
||||
destination: "https://umami.developomp.com/:match*",
|
||||
},
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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%
|
||||
|
|
|
@ -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)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue