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

feat: cloudflare r2 for blog assets #57

Merged
merged 6 commits into from
Aug 25, 2024
Merged

Conversation

arunsathiya
Copy link
Owner

  • feat: initial attempt—upload notion's assets to cloudflare r2 and replace content with the signed URL

  • fix: use blockId instead of a date/time combo; this would allow for identifying corresponding notion-r2 images further down the road

  • fix: path within bucket in listObjects util

  • feat: upload image to r2 only if the slug-blockId combination doesn't exist, and replace content with the signed url

  • feat: handle image uploads for all blog posts

  • feat: actually handle image uploads and replacements for all blog posts

@arunsathiya
Copy link
Owner Author

Deploy job was skipped, because:

if: ${{ github.event_name != 'pull_request' }}

Since build passes, merging. Should deploy from main.

@arunsathiya arunsathiya merged commit 8c44be1 into main Aug 25, 2024
3 checks passed
@arunsathiya arunsathiya deleted the feat/cloudflare-r2-for-assets branch August 25, 2024 06:13
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

Successfully merging this pull request may close these issues.

1 participant