From f9ea77ce928e01e3a0feefaff8824fd6f42e63cd Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Thu, 19 Dec 2024 14:40:20 -0500 Subject: [PATCH] Update vercel rewrites --- packages/keychain/.gitignore | 1 + packages/keychain/vercel.json | 8 ++++---- packages/profile/vercel.json | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/keychain/.gitignore b/packages/keychain/.gitignore index b43362b0c..e9cf4bd77 100644 --- a/packages/keychain/.gitignore +++ b/packages/keychain/.gitignore @@ -23,3 +23,4 @@ dist-ssr *.sln *.sw? stats.html +.vercel diff --git a/packages/keychain/vercel.json b/packages/keychain/vercel.json index 3a7d30719..1ded8a058 100644 --- a/packages/keychain/vercel.json +++ b/packages/keychain/vercel.json @@ -4,7 +4,7 @@ }, "headers": [ { - "source": "/ingest/static/:path*", + "source": "/ingest/static/:path(.*)", "headers": [ { "key": "Access-Control-Allow-Credentials", @@ -25,7 +25,7 @@ ] }, { - "source": "/ingest/:path*", + "source": "/ingest/:path(.*)", "headers": [ { "key": "Access-Control-Allow-Credentials", @@ -48,11 +48,11 @@ ], "rewrites": [ { - "source": "/ingest/static/:path*", + "source": "/ingest/static/:path(.*)", "destination": "https://us-assets.i.posthog.com/static/:path*" }, { - "source": "/ingest/:path*", + "source": "/ingest/:path(.*)", "destination": "https://us.i.posthog.com/:path*" } ] diff --git a/packages/profile/vercel.json b/packages/profile/vercel.json index 0634b3d05..49fcb885e 100644 --- a/packages/profile/vercel.json +++ b/packages/profile/vercel.json @@ -4,7 +4,7 @@ }, "headers": [ { - "source": "/ingest/static/:path*", + "source": "/ingest/static/:path(.*)", "headers": [ { "key": "Access-Control-Allow-Credentials", @@ -25,7 +25,7 @@ ] }, { - "source": "/ingest/:path*", + "source": "/ingest/:path(.*)", "headers": [ { "key": "Access-Control-Allow-Credentials",