As nuxt's doc said:
Dynamic routes are ignored by the generate command (yarn generate). Nuxt does not know what these routes will be so it can't generate them.
and they have a solution for creating static html files for dynamic routes:
generate: { routes () { return axios.get('https://my-api/users') .then((res) => { return res.data.map((user) => { return { route: '/users/' + user.id, payload: user } }) }) } }
My question is: Think we have 50 users when generate nuxt, and nuxt create 50 static html for each of them. But users count is not constant. e.g. one hour later we have 55 users. So, How this handle by nuxt? Or make it clear: Does it handle by nuxt?