-
Notifications
You must be signed in to change notification settings - Fork 20
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
Next13 app directory #170
Comments
@tatethurston Thank you for adding support for the app router. How to use it with the app router? Dynamic href in this format is not supported now:
I've been trying to use Next.js' types, but run into a limitation with dynamic routes. Your package provides a convenient
It looks like it is not possible to do the same with Next.js' types. The route they provide |
@Kovbo nextjs-routes doesn’t directly support the app router because of the nextjs change to only accept strings for the href. You may be able to use route for your use case https://github.com/tatethurston/nextjs-routes?tab=readme-ov-file#what-if-i-need-a-runtime |
Apparently it's not possible now with nextjs14 as it throws a runtime error saying:
I think the short-term solution would be giving a escape-hatch config for allowing strings in |
The |
but the project overrides next's route type and doesn't allow us to pass a string to the component, so we can't use the |
This issue is to house all discussion of Next13's app directory. To date, there have been a number of issues inquiring about the app directory:
nextjs-routes
only supports thepages
directory today. Next.js 13.2 includes statically typed links for theapp
directory: https://nextjs.org/blog/next-13-2#statically-typed-links.If you find deficiencies with Next.js' approach and have ideas for a better experience, let me know and I’m happy to consider adding support. Until I hear from folks, I'm operating under the impression that Next 13's statically typed links meet everyone's needs.
The text was updated successfully, but these errors were encountered: