Skip to content

Commit 2cb0253

Browse files
committed
fix: route frontend API through Vercel HTTP rewrite
1 parent f6ca2a5 commit 2cb0253

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

frontend/src/services/jobsService.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ function getApiBaseUrl(): string {
1010
return configuredBaseUrl;
1111
}
1212

13-
if (typeof window !== "undefined" && window.location.hostname === "painel-vagas-lake.vercel.app") {
14-
return "https://jobsglobalscraper.ddns.net";
15-
}
16-
1713
return "";
1814
}
1915

frontend/vercel.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"rewrites": [
3+
{
4+
"source": "/api/(.*)",
5+
"destination": "http://jobsglobalscraper.ddns.net/api/$1"
6+
}
7+
]
8+
}

0 commit comments

Comments
 (0)