-
Notifications
You must be signed in to change notification settings - Fork 284
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
Support for ssr: false
#1515
Comments
@danielroe is this feature somewhere on the roadmap? :) |
ssr: false means no HTML rendering of your Vue pages and this is not compatible with prerendering a totally static website with image optimisation. nuxt would be unable to know what images to optimise. (it would work fine if you had a server at runtime) however, you can statically generate a site without ssr: false. this should work fine. normally using ssr: false when prerendering is a mistake or misunderstanding of how nuxt does ssg. |
Could generate the optimized images during generation, and then serve them statically? Or perhaps at least make it so the images do load, but there isn't any processing by nuxt-img so the site doesn't break? |
that’s exactly what ipxStatic does. but it requires you to have ssr: true turned on during static generation. to reiterate, ssr: true does not mean you have a server at runtime |
Isn't the whole point of SSR that you have a server at runtime that helps with page rendering? I'm getting that impression from this universal rendering in the wiki
|
I'm not sure I understand the point you are making. You can statically render all your pages without any server at runtime. You need You can also have a server running at runtime. Mostly I would also recommend |
My apologies I'm a bit confused. What is the point of
Could we not optimize the images, just serve them, so the website doesn't break? Maybe let the users know with a warning that the images aren't being optimized? |
I am trying to use nuxt-img with electron, but the problem is that electron does not working with ssr, and it seems that this module does not work without server-side rendering (
ssr: true
).Is there planned support for
ssr: false
. Before, in versionv0
there seemed to be astatic
provider (docs), does something like this exist in this version? Where maybe some of the nuxt-img features are dropped, but the images still work with thessr: false
property?Context, when running with
ssr: false
ipx does not run, meaning the_ipx
folder does not exist, see this issue.--
The documentation is also rather confusing, from static images
What does this mean, do I have to loop through all my images, and create an array with a prefix of
/_ipx/w_???
.The text was updated successfully, but these errors were encountered: