Skip to content

Custom handler routes not working as expected #984

@prgueza

Description

@prgueza

Description

I'm trying to move around the handler routes from the default folder (handler/[...stack]) to a different route (auth/[...stack]).

I've configured the StackServerApp urls to be as follows:

export const stackServerApp = new StackServerApp({
  // ...
  urls: {
    handler: "/auth"
  },
});

The signin and signup pages show correctly, but when I try to login using OAuth I get redirected to the following url:

http://localhost:3000/handler/oauth-callback

I would expect to be redirected to http://localhost:3000/auth/oauth-callback instead.

Packages

  • @stackframe/stack: ^2.8.47
  • next: 16.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions