Need help on one issue - App Router #82190
Replies: 1 comment 2 replies
-
Interesting issue - I did take a brief look yesterday, some notes I got from that: The
And yes,
The way I understand it, when the router figures out the url-to-source-route matchers, it sees this, in this order:
Then the incoming url is matched against these, and the first one hits. If you were to rename Perhaps someone else will correct me, but AFAIK, An alternativeI think one way to do this would be use Something like: import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async rewrites() {
return [
{
source: "/send-money-to-:country(\\w+)/:rest*",
destination: "/send-money-to/:country/:rest*",
},
];
},
};
export default nextConfig; Which yes, still requires you to re-organize |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, seeking some help on this issue #82042. Can someone address it please?
Beta Was this translation helpful? Give feedback.
All reactions