godruoyi/gblog

Upload image to R2 when build

Closed this issue · 1 comments

Description

  • Move all images from src/images to public folder(not necessary, close this).
  • Add (copy) a plugin that uploads all images to R2 after the build is completed.
  • Change all blog image URLs to CDN links.
  • It's best to optimize the images before uploading them.
  • Ideally, rewrite optimized images back to local storage(not support now).
  • Preferably use the avif format.

close since #21