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