Skip to content

Commit

Permalink
feat: add proxy dev and prod environments
Browse files Browse the repository at this point in the history
  • Loading branch information
InnigerM committed Oct 29, 2023
1 parent f5892a5 commit 0261403
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions 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*"
}
]
}
8 changes: 4 additions & 4 deletions 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*"
}
]
}

0 comments on commit 0261403

Please sign in to comment.