You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
locked as resolved and limited conversation to collaborators
Jan 29, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 errorInvariant: invalid relative URL
related to this check for presence ofhttp://
here:next.js/packages/next/next-server/lib/router/utils/parse-relative-url.ts
Line 12 in 28e1287
Describe the solution you'd like
Would be great to be able to configure custom protocol/scheme like
ionic://
instead ofhttp://
innext.config.js
to be used in this checkDescribe 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
The text was updated successfully, but these errors were encountered: