From 0261403ca1c42d387f0786bbfa7d8b509cc08af5 Mon Sep 17 00:00:00 2001 From: megiSW Date: Sun, 29 Oct 2023 13:22:13 +0100 Subject: [PATCH] feat: add proxy dev and prod environments --- packages/proxy-dev/vercel.json | 14 ++++++++++++++ packages/proxy/vercel.json | 8 ++++---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 packages/proxy-dev/vercel.json diff --git a/packages/proxy-dev/vercel.json b/packages/proxy-dev/vercel.json new file mode 100644 index 0000000..a75531b --- /dev/null +++ b/packages/proxy-dev/vercel.json @@ -0,0 +1,14 @@ +{ + "rewrites": [ + { "source": "/api/", "destination": "https://hay-backend-dev.vercel.app/" }, + { + "source": "/api/:match*", + "destination": "https://hay-backend-dev.vercel.app/:match*" + }, + { "source": "/", "destination": "https://hay-baselhack-dev.vercel.app" }, + { + "source": "/:match*", + "destination": "https://hay-baselhack-dev.vercel.app/:match*" + } + ] +} diff --git a/packages/proxy/vercel.json b/packages/proxy/vercel.json index a75531b..b39cbf1 100644 --- a/packages/proxy/vercel.json +++ b/packages/proxy/vercel.json @@ -1,14 +1,14 @@ { "rewrites": [ - { "source": "/api/", "destination": "https://hay-backend-dev.vercel.app/" }, + { "source": "/api/", "destination": "https://hay-backend.vercel.app/" }, { "source": "/api/:match*", - "destination": "https://hay-backend-dev.vercel.app/:match*" + "destination": "https://hay-backend.vercel.app/:match*" }, - { "source": "/", "destination": "https://hay-baselhack-dev.vercel.app" }, + { "source": "/", "destination": "https://hay-baselhack.vercel.app" }, { "source": "/:match*", - "destination": "https://hay-baselhack-dev.vercel.app/:match*" + "destination": "https://hay-baselhack.vercel.app/:match*" } ] }