diff --git a/apps/blog/next.config.js b/apps/blog/next.config.js index fe8d48f..f00b0aa 100644 --- a/apps/blog/next.config.js +++ b/apps/blog/next.config.js @@ -1,5 +1,14 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + // https://umami.is/docs/guides/bypass-ad-blockers#proxying + async rewrites() { + return [ + { + source: "/stats/:match*", + destination: "https://analytics.umami.is/:match*", + }, + ] + }, experimental: { externalDir: true, }, diff --git a/apps/blog/vercel.json b/apps/blog/vercel.json deleted file mode 100644 index aa9ecb9..0000000 --- a/apps/blog/vercel.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$schema": "https://openapi.vercel.sh/vercel.json", - "rewrites": [ - { - "source": "/stats/:match*", - "destination": "https://analytics.umami.is/:match*" - } - ] -}