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

Support for ssr: false #1515

Open
dladeira opened this issue Sep 27, 2024 · 0 comments
Open

Support for ssr: false #1515

dladeira opened this issue Sep 27, 2024 · 0 comments

Comments

@dladeira
Copy link

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 version v0 there seemed to be a static 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 the ssr: 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

In that case, you can tell Nuxt to pre-render images by using the nitro.prerender.routes option

What does this mean, do I have to loop through all my images, and create an array with a prefix of /_ipx/w_???.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant