next-routes
next-routes copied to clipboard
I wish to render a default page if routes don't match
I have a Nextjs
app where I'm using next-routes
for route handling.
Below is the snippet of my app routes (routes.js)
const routes = require('next-routes')
module.exports = routes()
.add('home-page', '/', 'home')
.add('carloan', '/used-car-loan(/?)', 'carloan')
.add('insurance', '/used-car-insurance(/?)', 'insurance')
.add('papertransfer', '/used-car-paper-transfer(/?)', 'papertransfer')
.add('seo-page', '/used-cars(/?)*', 'home')
.add('contact', '/contact(/?)', 'contact_us')
.add('about', '/about(/?)', 'about')
.add('user_dashboard', '/user/dashboard(/?)', 'user_dashboard')
.add('user_subscription', '/user/subscription(/?)', 'user_subscription')
I have a use case where I want to show a page if above urls don't match. Is there any way to do so?