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

generate files need javascript to render it #176

Open
algoz098 opened this issue Feb 26, 2022 · 3 comments
Open

generate files need javascript to render it #176

algoz098 opened this issue Feb 26, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@algoz098
Copy link

Maybe this expected, but i tougth a SSG should generate the html files with the rendered html inside it so the requester would be able to see the page as intended without the need of javascript, the reason for something so complicated like this, would be bot and crawlers for seo to work as it would in SSR

Is this something in the roadmap or even available and i did not found it?
Thanks for the library.

@freddy38510
Copy link
Owner

Hi,

The term static is confusing. It's obvious, but if you disable javascript, you can't have dynamic interactions in your pages, like opening or closing the drawer. All of Vue's features and functionality will be useless.

In our case, SSG is just the pre-rendering of pages like SSR mode but at build time.
When you first load a page, the page is already rendered thanks to SSG. Then Vue hydrates it and your app now works like a SPA.

@algoz098
Copy link
Author

algoz098 commented Mar 2, 2022

I should phrase it better.
I thought it would generate the static HTML and also generate the JSONs to hydratate it after, as Vite SSG and Nuxt does, is this not expected?

If not, would this be a possible feature in the futere?

Thanks again

@freddy38510
Copy link
Owner

Are you talking about the data which you might fetch at page or component level ?

Nuxt has a mechanism to fetch the data at server-side then cache them to be used at client-side.

If this is what you are talking about, it's funny because I was actually planning to implement this feature.

@freddy38510 freddy38510 added the enhancement New feature or request label Mar 13, 2022
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
None yet
Development

No branches or pull requests

2 participants