jstack
jstack copied to clipboard
Changing BasePath does not work.
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
What is the error?
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