-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
docs: fix SSG explanation #2925
Conversation
✅ Deploy Preview for vuejs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I believe the current wording is correct. "Static" means that no matter how many requests you do, you'll always receive the very same file(s). To change anything in the content, you need to deploy a new version of application with updated files. Purely static sites should be HTML + CSS + media files only. No backend, no database, no web services, no processing on server... But I think the term is also often used for JavaScript files, that are "static" from the server perspective (they are always served the same), but dynamic for the user - JavaScript on client allows interaction with the content, including fetching data from external endpoints. And this might cause the confusion. |
They are being processed on the server (or in CI). During Generation in the build process, which may very well include backends and databases etc. Purely static files are the results of that with SSG. The current text said, that the data cannot change between deploys. That sentence would only make sense to me, if you separate the meaning of the build process from the actual deployment as in hosting. If so, the wording should be updated further, to include that notion and thus make it more clear. Considering the possibly dynamic data at build time I still think that my PR makes more sense than the current wording. |
If you make request to |
Yes absolutely! 😊 That is why the previous wording was wrong. |
Oh, now I am finally getting you. Both sentences are true, but the updated one sounds more explanatory. You're right, sorry. |
Glad we're on the same page. Do you think it would help to change
|
Now when you point it out, yes. Although we can say a site "consumes" input data to create a content, more natural way of thinking about the concept probably would be to say a site "provides" data to the user... |
Description of Problem
The docs state that with SSG data may not change between deploys.
Proposed Solution
Rephrase it to say data may not change between requests instead.