From 2cfa1d7a7d005830b589a98d43cc0f409d85761f Mon Sep 17 00:00:00 2001 From: developomp Date: Mon, 9 Sep 2024 11:04:45 +0900 Subject: [PATCH] refactor: use new analytics server --- apps/blog/next.config.js | 2 +- apps/blog/src/app/layout.tsx | 2 +- apps/main/src/app.html | 2 +- apps/main/vite.config.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/blog/next.config.js b/apps/blog/next.config.js index f00b0aa..e205886 100644 --- a/apps/blog/next.config.js +++ b/apps/blog/next.config.js @@ -5,7 +5,7 @@ const nextConfig = { return [ { source: "/stats/:match*", - destination: "https://analytics.umami.is/:match*", + destination: "https://umami.developomp.com/:match*", }, ] }, diff --git a/apps/blog/src/app/layout.tsx b/apps/blog/src/app/layout.tsx index f60aff0..5584d5d 100644 --- a/apps/blog/src/app/layout.tsx +++ b/apps/blog/src/app/layout.tsx @@ -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" > diff --git a/apps/main/src/app.html b/apps/main/src/app.html index 2b0631c..653f053 100644 --- a/apps/main/src/app.html +++ b/apps/main/src/app.html @@ -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" > %sveltekit.head% diff --git a/apps/main/vite.config.ts b/apps/main/vite.config.ts index 7c5becc..0ec6ea0 100644 --- a/apps/main/vite.config.ts +++ b/apps/main/vite.config.ts @@ -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) },