jstack icon indicating copy to clipboard operation
jstack copied to clipboard

Changing BasePath does not work.

Open nico-k3 opened this issue 8 months ago • 2 comments

Hey,

I am not able to change the BasePath. Also after reading your documentation, I am not able to get it working. Am I missing something?

Steps to reproduce:

  • Change the "/app/api "folder to "/app/internal"
  • Change the BasePath in /server/index.ts: const api = j .router() .basePath("/internal") .use(j.defaults.cors) .onError(j.defaults.errorHandler);
  • Change the in /lib/client.ts: export const client = createClient<AppRouter>({ baseUrl: "http://localhost:3000/internal", });

You wont be able to use the API anymore.

Is there a solution to this? Am I missing something?

Cheers Nico

nico-k3 avatar Apr 20 '25 16:04 nico-k3

What is the error?

SamHoque avatar Apr 21 '25 13:04 SamHoque

Same issue here.

the error is 404 not found while we followed exactly what was described in the docs

 GET /api/rpc/post/recent 404 in 274ms
 POST /api/rpc/post/create 404 in 19ms

ElBaDaNoS avatar Jun 01 '25 06:06 ElBaDaNoS