Is it possible to dynamically change the url of httpBatchLink in runtime?

FFearlessSlug5/11/2023
I need to do it because I have 2 domians that share the same NextJS project and I need to be able to point tRPC to the right domain depending on the one the user is currently browsing from
AAutumnLight5/11/2023
Im a trpc noob but cant you just host both of them on different ports?
AAutumnLight5/11/2023
also are the code bases of both projects merged or seperate?
AAutumnLight5/11/2023
and is the backend combined or seperated?
AAutumnLight5/11/2023
@FearlessSlug
FFearlessSlug5/11/2023
Everything is combined, I do mild changes between each website which I'm currently detecting by the hostname in the 13.4 api routes
AAutumnLight5/11/2023
@FearlessSlug wait so both backends are also combined?
AAutumnLight5/11/2023
are there some shared backend methods
AAutumnLight5/11/2023
if not what you could do is have a prefix
AAutumnLight5/11/2023
like /page 1 everything
AAutumnLight5/11/2023
/page 2 everything
AAutumnLight5/11/2023
it would be liek /myWebsite/users/create
AAutumnLight5/11/2023
and /yourwebsite/users/create
AAutumnLight5/11/2023
but tbh id seperate both apps
FFearlessSlug5/11/2023
Thanks that's probably gonna work