You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like the idea of the Notion Integration, as it's really hard to find a simple CMS. Here is a question fro a Next beginner:
Is there a way to improve the handling of images? As much as I understand, Unsplash images added via Notion will be served from Unsplash, while uploaded images are served with AWS. From what I can see in the code of a deployed site, these images are not optimised, i.e. responsive. When serving two images only, that leads to a 60-70% PageSpeed Score and because they are not cached, they reload every time.
Would there be any way to pull these images automatically from Notion, and serve them via Vercel and next/image? By doing so, I assume, they could be cached. Here's how I'd imagine the process roughly:
Loading (external) imageURL from Notion
Storing image in an assets folder
Inserting responsive local images from assets with next/image
Hi everyone,
I really like the idea of the Notion Integration, as it's really hard to find a simple CMS. Here is a question fro a Next beginner:
Is there a way to improve the handling of images? As much as I understand, Unsplash images added via Notion will be served from Unsplash, while uploaded images are served with AWS. From what I can see in the code of a deployed site, these images are not optimised, i.e. responsive. When serving two images only, that leads to a 60-70% PageSpeed Score and because they are not cached, they reload every time.
Would there be any way to pull these images automatically from Notion, and serve them via Vercel and next/image? By doing so, I assume, they could be cached. Here's how I'd imagine the process roughly:
A potential way forward might be outlined at the bottom this post or in this repository.
Personally, I would very enjoy this function as I'm building a website for a student entrepreneurship club that comes with many images in the future.
Thanks in advance!
The text was updated successfully, but these errors were encountered: