'Display external cover Notion API with Next.js
I'm creating my portfolio using Notion API, Next.js and Tailwind thanks to this wonderful work : https://github.com/samuelkraft/notion-blog-nextjs
However, as you may know, images hosted on Notion has an expiration time.
I tried to use
<img src={blog.cover.file.url}/> but if I upload a cover on my Notion page from an external link, all my code breaks.
I had a look on this documentation : https://developers.notion.com/changelog/page-icons-cover-images-new-block-types-and-improved-page-file-properties
but I don't know how to mention it's an external link.
Do you have any idea how I can solve this issue?
Thanks a lot in advance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
