Currently, Nuxt's SSG mode is generating static HTML files which does not account for dynamic content that depends on external data sources or unpublished content. This means preview branches do not reflect the complete site with dynamic and unpublished content.
We need to enable dynamic route generation and data fetching for Nuxt SSG so that it can build routes and fetch data for dynamic and unpublished content. This will allow previewing the complete site with dynamic and unpublished content on preview branches.
Please refer to #339 and #338 that adding generate configuration in nuxt.config.js and update the asyncData in each page to fetch data from external sources.
Currently, Nuxt's SSG mode is generating static HTML files which does not account for dynamic content that depends on external data sources or unpublished content. This means preview branches do not reflect the complete site with dynamic and unpublished content. We need to enable dynamic route generation and data fetching for Nuxt SSG so that it can build routes and fetch data for dynamic and unpublished content. This will allow previewing the complete site with dynamic and unpublished content on preview branches.
Please refer to #339 and #338 that adding
generate
configuration innuxt.config.js
and update theasyncData
in each page to fetch data from external sources.