Skip to content

Changing BasePath does not work. #75

Description

@nico-k3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions