I’m trying to generate a blurDataURL for my images using a node.js library, so I created an endpoint
src is the url of the builder loaded image.
blurDataURL is a block/component option which I want to bind with a dynamic value, in this case I need the
src prop of the image. I’ve been debugging with console.log, and the only way to get this value is trough
$block.props.block.component.options.src. Is there a better way to achieve this?
What I would actually like to do is generate those blurDataURL’s inside
getStaticProps but because I don’t know all the image src’s at that time I can’t do it.
builder.get() you can get all the page data, but you have to find the right component and then modify its options (although if you manually change an option it is not reflected in builder editor).
For other images where I know the src there is not any problem.