Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see generated routes in nuxtjs

Tags:

vue.js

nuxt.js

Is there a way to see the route list generated by Nuxtjs based on pages folder items ? The problem is I don't know what exact route name is generated for the component.

$router.push({name: 'no-idea-what-the-route-name-is', query: { id: data.id } })

this is very useful in a large scale app. in Laravel easily we can use php artisan route:list command in same scenario.

like image 646
ghazyy Avatar asked Oct 15 '25 04:10

ghazyy


1 Answers

There is a generated folder .nuxt where you can find router.js file with all your routes.

like image 127
David Go Avatar answered Oct 17 '25 09:10

David Go