File-Based Navigation and Dynamic Routes

Explore Nuxt's unique file-based navigation and how to enable dynamic routes.

When we create a .vue file inside the pages directory, it creates a matching URL or route. For example, pages/about.vue will generate the https://yourwebsite/about URL.

Manual configuration in Vue.js

The file contents will then render, and this is referred to as file-system routing and can be convenient for the developer. Nuxt uses the same router as Vue.js, but in a Vue.js project, we need to set things up manually. Here is a typical router configuration file in Vue.js:

Get hands-on with 1200+ tech skills courses.