All static routes and dynamic routes are generated, but not index.html. Why not?
In nuxt-config.js I have:
const staticRoutes =
[
'/about',
'/contact',
'/portfolio'
]
const dynamicRoutes = async () => {
const routes = await axios.get('https://my-site.com/wp/wp-json/projects/v1/posts')
.then(res => res.data.map((project) => `/project/${project.ID}/${project.post_name}`))
return routes
}