Static Site Generation with Nuxt.js (Nuxt 2)
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

🚧 NOTICE: You are watching a Vue.js 2 lesson

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