From 81651459e56124a16269425ca3b0f5db802b9933 Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Thu, 19 Dec 2024 13:49:07 -0500 Subject: [PATCH] Remove decide rewrite --- packages/profile/vercel.json | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/packages/profile/vercel.json b/packages/profile/vercel.json index 0e6356eee..0634b3d05 100644 --- a/packages/profile/vercel.json +++ b/packages/profile/vercel.json @@ -44,27 +44,6 @@ "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" } ] - }, - { - "source": "/decide", - "headers": [ - { - "key": "Access-Control-Allow-Credentials", - "value": "true" - }, - { - "key": "Access-Control-Allow-Origin", - "value": "*" - }, - { - "key": "Access-Control-Allow-Methods", - "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" - }, - { - "key": "Access-Control-Allow-Headers", - "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" - } - ] } ], "rewrites": [ @@ -73,16 +52,12 @@ "destination": "/" }, { - "source": "/ingest/static/:path*", - "destination": "https://us-assets.i.posthog.com/static/:path*" - }, - { - "source": "/ingest/:path*", - "destination": "https://us.i.posthog.com/:path*" + "source": "/ingest/static/:path(.*)", + "destination": "https://us-assets.i.posthog.com/static/:path" }, { - "source": "/decide", - "destination": "https://us.i.posthog.com/decide" + "source": "/ingest/:path(.*)", + "destination": "https://us.i.posthog.com/:path" } ] -} +} \ No newline at end of file