From d382856cba2d7e41726ebcfc55dc391d1d9a0d0a Mon Sep 17 00:00:00 2001 From: Sourav Chandhok <114119117+souravC01@users.noreply.github.com> Date: Fri, 11 Sep 2026 20:15:10 -0400 Subject: [PATCH 1/4] fix: proxy marketplace requests through Vercel --- vercel-redirect/vercel.json | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/vercel-redirect/vercel.json b/vercel-redirect/vercel.json index a359525..449e58f 100644 --- a/vercel-redirect/vercel.json +++ b/vercel-redirect/vercel.json @@ -1,14 +1,20 @@ { - "redirects": [ + "$schema": "https://openapi.vercel.sh/vercel.json", + "rewrites": [ { - "source": "/", - "destination": "https://yu-bazaar-772739041868.us-east4.run.app", - "permanent": false - }, + "source": "/:path*", + "destination": "https://yu-bazaar-772739041868.us-east4.run.app/:path*" + } + ], + "headers": [ { "source": "/:path*", - "destination": "https://yu-bazaar-772739041868.us-east4.run.app/:path*", - "permanent": false + "headers": [ + { + "key": "x-vercel-enable-rewrite-caching", + "value": "0" + } + ] } ] } From a6f3e684448bec1ef613d85260fa41bf8defb33d Mon Sep 17 00:00:00 2001 From: Sourav Chandhok <114119117+souravC01@users.noreply.github.com> Date: Fri, 11 Sep 2026 20:16:28 -0400 Subject: [PATCH 2/4] fix: provide static output for the Vercel proxy --- vercel-redirect/public/robots.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 vercel-redirect/public/robots.txt diff --git a/vercel-redirect/public/robots.txt b/vercel-redirect/public/robots.txt new file mode 100644 index 0000000..c2a49f4 --- /dev/null +++ b/vercel-redirect/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / From 751f756320eded8602a7d58e20d9c401589eeaf8 Mon Sep 17 00:00:00 2001 From: Sourav Chandhok <114119117+souravC01@users.noreply.github.com> Date: Fri, 11 Sep 2026 20:17:54 -0400 Subject: [PATCH 3/4] fix: route the proxy homepage explicitly --- vercel-redirect/vercel.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vercel-redirect/vercel.json b/vercel-redirect/vercel.json index 449e58f..ab4f896 100644 --- a/vercel-redirect/vercel.json +++ b/vercel-redirect/vercel.json @@ -1,6 +1,10 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", "rewrites": [ + { + "source": "/", + "destination": "https://yu-bazaar-772739041868.us-east4.run.app/" + }, { "source": "/:path*", "destination": "https://yu-bazaar-772739041868.us-east4.run.app/:path*" From da78bf305b53fbc4c8bc23fb5d28e6f027b9dc5a Mon Sep 17 00:00:00 2001 From: Sourav Chandhok <114119117+souravC01@users.noreply.github.com> Date: Fri, 11 Sep 2026 20:20:05 -0400 Subject: [PATCH 4/4] fix: preserve the public hostname in backend redirects --- vercel-redirect/vercel.json | 41 +++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/vercel-redirect/vercel.json b/vercel-redirect/vercel.json index ab4f896..e470db2 100644 --- a/vercel-redirect/vercel.json +++ b/vercel-redirect/vercel.json @@ -1,22 +1,37 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", - "rewrites": [ + "routes": [ { - "source": "/", - "destination": "https://yu-bazaar-772739041868.us-east4.run.app/" + "src": "/", + "dest": "https://yu-bazaar-772739041868.us-east4.run.app/", + "headers": { + "x-vercel-enable-rewrite-caching": "0" + }, + "transforms": [ + { + "type": "request.headers", + "op": "set", + "target": { + "key": "Forwarded" + }, + "args": "proto=https;host=$host" + } + ] }, { - "source": "/:path*", - "destination": "https://yu-bazaar-772739041868.us-east4.run.app/:path*" - } - ], - "headers": [ - { - "source": "/:path*", - "headers": [ + "src": "/(.*)", + "dest": "https://yu-bazaar-772739041868.us-east4.run.app/$1", + "headers": { + "x-vercel-enable-rewrite-caching": "0" + }, + "transforms": [ { - "key": "x-vercel-enable-rewrite-caching", - "value": "0" + "type": "request.headers", + "op": "set", + "target": { + "key": "Forwarded" + }, + "args": "proto=https;host=$host" } ] }