Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

allow correct redirects for apps using next basePath#47

Open
RokoTechnology wants to merge 2 commits into
ory:mainfrom
RokoTechnology:main
Open

allow correct redirects for apps using next basePath#47
RokoTechnology wants to merge 2 commits into
ory:mainfrom
RokoTechnology:main

Conversation

@RokoTechnology

@RokoTechnology RokoTechnology commented Jan 9, 2023

Copy link
Copy Markdown

see issue #45

@CLAassistant

CLAassistant commented Jan 9, 2023

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@aeneasr aeneasr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you for your contribution! This looks pretty good and I have some ideas how to improve it further :)

Comment thread src/next-edge/index.ts
Comment on lines +120 to +123
/*
* You can pass your next.config.js basePath here if your app lives on a subpath of the domain.
*/
appBasePath?: string

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to instead load this from next itself directly? That way we can avoid another config parameter and it would just work with magic? :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants