Files
t3code/packages/client-runtime/src/environment/endpoint.ts

10 lines
271 B
TypeScript

export * from "@t3tools/shared/advertisedEndpoint";
export const environmentEndpointUrl = (httpBaseUrl: string, pathname: string): string => {
const url = new URL(httpBaseUrl);
url.pathname = pathname;
url.search = "";
url.hash = "";
return url.toString();
};