react-notion-x
react-notion-x copied to clipboard
defaultMapImageUrl - check for signed URLs
trafficstars
Please, can we add a check to the defaultMapImageUrl for the signed URLs? So when we have a signed URL for a specific block, we will use it instead of the native URL. This was the only reason I had to override the mapImageUrl method and I guess, it would be better to have this built-in (it took some time to figure it out as well)
Something like:
if (data.signed_urls && data.signed_urls[block.id]) {
return data.signed_urls[block.id];
}
This is a great idea. Good catch.