Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt dynamic route for SSG and site preview on gh-page and netlify #388

Open
josix opened this issue Mar 19, 2023 · 2 comments
Open

Adopt dynamic route for SSG and site preview on gh-page and netlify #388

josix opened this issue Mar 19, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@josix
Copy link
Collaborator

josix commented Mar 19, 2023

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.

@josix josix converted this from a draft issue Mar 19, 2023
@josix josix added the enhancement New feature or request label Mar 19, 2023
@josix josix moved this from 🆕 New to 🔖 Ready in PyConTW'23 Dev-Web Kanban May 6, 2023
Ritabear added a commit that referenced this issue May 25, 2023
@Ritabear
Copy link
Collaborator

@josix

@josix josix moved this from 🔖 Ready to 🏗 In progress in PyConTW'23 Dev-Web Kanban May 28, 2023
@josix
Copy link
Collaborator Author

josix commented May 31, 2023

Hi @Ritabear, could you help me create another PR for this change. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🏗 In progress
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants