chore(env): remove unused vercel-url env variable (#1779)

* chore(env): remove unused vercel-url env variable

* chore: remove vercel-json file
This commit is contained in:
Meier Lukas
2024-12-26 08:58:27 +01:00
committed by GitHub
parent ef24370a8c
commit ec257e5f60
4 changed files with 11 additions and 45 deletions

View File

@@ -16,7 +16,6 @@ export const fetchApi = createTRPCClient<AppRouter>({
function getBaseUrl() {
if (typeof window !== "undefined") return window.location.origin;
if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`;
return `http://localhost:${process.env.PORT ?? 3000}`;
}