otoyo/astro-notion-blog

Speed up fetching expired image blocks

otoyo opened this issue · 0 comments

otoyo commented

When file blocks are retrieved from Nx cache, their URL (S3 signed URL) might be already expired.
So URLs must be refreshed with reloading the blocks since #49.
However, the fetching logic is time-consuming so it needs to be faster.

Idea

  1. Enqueue image blocks to queue while building
  2. Download image files to public/notion/images/ after building