Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Master Vue.js with Vue School Premium

$25 / month

Static Site Generation with Nuxt.js

Get access to this course, 17 others, and future Vue.js courses!

Start Learning

Already got an account? Log in

Prerendering Dynamic Routes

In this lesson, we learn how to prerender dynamic Nuxt routes.

The reason for why nuxt generate doesn't prerender dynamic routes out of the box, is that the framework doesn't know our dynamic content. We have to tell Nuxt about our dynamic content, for it to generate the static files.

Luckily, Nuxt provides us with an elegant solution to programmatically specify all our dynamic routes so we can generate the performant static files.

The Chrome extension used in this video is called JSON Viewer