From 8be3ae370f82540ec175a3acfa55cd9b8794bb2d Mon Sep 17 00:00:00 2001 From: developomp Date: Tue, 10 Sep 2024 10:43:58 +0900 Subject: [PATCH] fix: broken analytics --- apps/main/vercel.json | 8 ++++++++ apps/main/vite.config.ts | 10 ---------- 2 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 apps/main/vercel.json diff --git a/apps/main/vercel.json b/apps/main/vercel.json new file mode 100644 index 0000000..ef80eb1 --- /dev/null +++ b/apps/main/vercel.json @@ -0,0 +1,8 @@ +{ + "rewrites": [ + { + "source": "/stats/:match*", + "destination": "https://umami.developomp.com/:match*" + } + ] +} diff --git a/apps/main/vite.config.ts b/apps/main/vite.config.ts index 0ec6ea0..df33534 100644 --- a/apps/main/vite.config.ts +++ b/apps/main/vite.config.ts @@ -11,15 +11,5 @@ export default defineConfig({ }, server: { open: true, - proxy: { - // https://umami.is/docs/guides/bypass-ad-blockers - // https://vitejs.dev/config/server-options.html#server-proxy - // https://developomp.com/stats/* -> https://umami.developomp.com/* - "^/stats/.*": { - target: "https://umami.developomp.com/", - changeOrigin: true, - rewrite: (path) => path.slice(6), // slice "/stats" off the string (which is 6 characters long) - }, - }, }, })