From 1281a1fdc6febf61efb39a458653b2a18fefc3e9 Mon Sep 17 00:00:00 2001 From: developomp Date: Fri, 11 Oct 2024 13:14:06 +0900 Subject: [PATCH] refactor: remove unnecessary analytics proxy --- apps/blog/next.config.js | 9 --------- apps/blog/src/app/layout.tsx | 3 +-- apps/main/src/app.html | 3 +-- apps/main/vercel.json | 8 -------- 4 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 apps/main/vercel.json diff --git a/apps/blog/next.config.js b/apps/blog/next.config.js index e205886..fe8d48f 100644 --- a/apps/blog/next.config.js +++ b/apps/blog/next.config.js @@ -1,14 +1,5 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - // https://umami.is/docs/guides/bypass-ad-blockers#proxying - async rewrites() { - return [ - { - source: "/stats/:match*", - destination: "https://umami.developomp.com/:match*", - }, - ] - }, experimental: { externalDir: true, }, diff --git a/apps/blog/src/app/layout.tsx b/apps/blog/src/app/layout.tsx index 5584d5d..9946202 100644 --- a/apps/blog/src/app/layout.tsx +++ b/apps/blog/src/app/layout.tsx @@ -63,9 +63,8 @@ export default function RootLayout({ /> diff --git a/apps/main/src/app.html b/apps/main/src/app.html index 653f053..90f4139 100644 --- a/apps/main/src/app.html +++ b/apps/main/src/app.html @@ -24,9 +24,8 @@ diff --git a/apps/main/vercel.json b/apps/main/vercel.json deleted file mode 100644 index ef80eb1..0000000 --- a/apps/main/vercel.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rewrites": [ - { - "source": "/stats/:match*", - "destination": "https://umami.developomp.com/:match*" - } - ] -}