Skip to content

Commit

Permalink
fix(web/proxy): fix orGet receive string instead of function
Browse files Browse the repository at this point in the history
  • Loading branch information
GervinFung committed Jul 21, 2024
1 parent eec08b9 commit eb1de9d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/web/src/web/proxy/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ const getBaseUrl = () => {
// reference for vercel.com
return `https://${vercelUrl}`;
})
.orGet(() => {
return process.env.NEXT_PUBLIC_ORIGIN;
});
.orGet(process.env.NEXT_PUBLIC_ORIGIN);
};

const trpcClient = createTRPCProxyClient<AppRouter>({
Expand Down

0 comments on commit eb1de9d

Please sign in to comment.