Direct name of nested routing #15447
Answered
by
jamesmosier
Sandeep06Dev
asked this question in
Help
-
#Hi.. Now i want to load this page by visiting "localhost:3000/Car". Help please.. |
Beta Was this translation helpful? Give feedback.
Answered by
jamesmosier
Jul 24, 2020
Replies: 1 comment
-
There is an experimental (soon to be released to stable) feature for rewrites and redirects. If you install the latest canary (
module.exports = {
async redirects() {
return [
{
source: '/Car',
destination: '/services/car_services',
permanent: true
}
]
}
} or with rewrites module.exports = {
async rewrites() {
return [
{
source: '/Car',
destination: '/services/car_services',
},
];
},
}; Here is the RFC |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Sandeep06Dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an experimental (soon to be released to stable) feature for rewrites and redirects. If you install the latest canary (
9.4.5-canary.43
) you can access it like this below:next.config.js
or with rewrites
Here is the RFC