Static Site Generation with Nuxt.js (Nuxt 2)

Watch this course for FREE this weekend only.
Create an account to start watching.

or
🚧 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