Replies: 1 comment 2 replies
-
I don't think that's true, have you tried calling it outside of the Next.js render process? It can be useful e.g. for sitemaps. Not sure if I'm overlooking something … |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now,
getPathname
is tied to the NextJS runtime (at least that's my understanding, correct me if I'm wrong) but a type safe url builder based on a static config could be extremely useful even outside of it, I've find myself needing it in tests with different runtime, other packages in the monorepo and so onIt would be nice to be able to export it and import it for use somewhere outside of NextJS, or alternatively having a way to leverage the functionality (which should be only dependent on the config I guess) outside of the NextJS scope
I've taken a look at
use-intl
but it doesn't seem to solve this problemBeta Was this translation helpful? Give feedback.
All reactions