Skip to content

Is it possible to customize the RPC endpoint path? #1409

Answered by timostamm
Gumichocopengin8 asked this question in Q&A
Discussion options

You must be logged in to vote

You can modify the request URL with an interceptor. For example:

const transport = createConnectTransport({
  baseUrl: "/",
  interceptors: [
    (next) => (req) => {
      return next({
        ...req,
        url: req.url.replace("packageName.ServiceName/", ""),
      });
    },
  ],
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gumichocopengin8
Comment options

Answer selected by Gumichocopengin8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants