Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to configure custom url scheme / protocol instead of http:// #20427

Closed
Yuripetusko opened this issue Dec 23, 2020 · 2 comments
Closed

Allow to configure custom url scheme / protocol instead of http:// #20427

Yuripetusko opened this issue Dec 23, 2020 · 2 comments

Comments

@Yuripetusko
Copy link
Contributor

Yuripetusko commented Dec 23, 2020

Feature request

Is your feature request related to a problem? Please describe.

When using nextjs static export with Capacitor / ionic then local files are served from custom url scheme (ionic://), then when you try to use nextjj Link to navigate to different page I get error Invariant: invalid relative URL related to this check for presence of http:// here:

typeof window === 'undefined' ? 'http://n' : getLocationOrigin()

Describe the solution you'd like

Would be great to be able to configure custom protocol/scheme like ionic:// instead of http:// in next.config.js to be used in this check

Describe alternatives you've considered

Don't see alternative at the moment

Additional context

I do a static build of one page only, copy it to capacitor www folder and all other pages are loaded on client side using nextjs router

@Yuripetusko
Copy link
Contributor Author

Yuripetusko commented Dec 23, 2020

Closing as it was fixed in newer nextjs version #16650

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants