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

Serving Images from Vercel #56

Open
3 tasks
jermainkaminski opened this issue Jan 12, 2021 · 0 comments
Open
3 tasks

Serving Images from Vercel #56

jermainkaminski opened this issue Jan 12, 2021 · 0 comments

Comments

@jermainkaminski
Copy link

jermainkaminski commented Jan 12, 2021

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:

  • Loading (external) imageURL from Notion
  • Storing image in an assets folder
  • Inserting responsive local images from assets with next/image

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!

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