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) - }, - }, }, })