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:
@@ -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}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user