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: / diff --git a/vercel-redirect/vercel.json b/vercel-redirect/vercel.json index a359525..e470db2 100644 --- a/vercel-redirect/vercel.json +++ b/vercel-redirect/vercel.json @@ -1,14 +1,39 @@ { - "redirects": [ + "$schema": "https://openapi.vercel.sh/vercel.json", + "routes": [ { - "source": "/", - "destination": "https://yu-bazaar-772739041868.us-east4.run.app", - "permanent": false + "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*", - "permanent": false + "src": "/(.*)", + "dest": "https://yu-bazaar-772739041868.us-east4.run.app/$1", + "headers": { + "x-vercel-enable-rewrite-caching": "0" + }, + "transforms": [ + { + "type": "request.headers", + "op": "set", + "target": { + "key": "Forwarded" + }, + "args": "proto=https;host=$host" + } + ] } ] }