-
SummaryI have an app that uses the App router, and it is exported as a static page. It uses There are several routes, all work well. However, when accessing The issue is that when the app crashes, I'd expect the page to render the Does the Additional informationThe next version is `14.2.16`.
The React version is `18.2.0`
From what I could gather from the minified bundle, this is where the page breaks
let e = new URL("" + p.pathname + p.search,p.origin), t = [["", l, null, null]];
(0,
i.createPrefetchCacheEntryForInitialLoad)({
url: e,
kind: s.PrefetchKind.AUTO,
data: [t, void 0, !1, m],
tree: E.tree,
prefetchCache: E.prefetchCache,
nextUrl: E.nextUrl
})
Here, `p.pathname` is `//`, so it generates an invalid URL, causing an error to be thrown. It seems this is part of the Next source code, but I was unable to map this into the next's source code
If you need to check the repo where this problem is happening, you can check [the source code](https://github.com/hemilabs/ui-monorepo/tree/dea586d7c63fc403f614b371e2a5ab39cd5bbf6d/portal) ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Works for me, with Next 14.2.16 ![]() Strange, could, Hostinger be doing something to the URL, rewrite/redirect kind of thing? |
Beta Was this translation helpful? Give feedback.
Works for me, with Next 14.2.16
Strange, could, Hostinger be doing something to the URL, rewrite/redirect kind of thing?