feat(cloudflareimages): add new provider#2100
Conversation
commit: |
Deploying nuxt-image with
|
| Latest commit: |
28e7836
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://241ab5fa.nuxt-image.pages.dev |
| Branch Preview URL: | https://feat-cloudflareimages.nuxt-image.pages.dev |
📝 WalkthroughWalkthroughAdds Cloudflare Images as a built-in provider. Updates Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2100 +/- ##
=======================================
Coverage 32.52% 32.52%
=======================================
Files 7 7
Lines 372 372
Branches 131 131
=======================================
Hits 121 121
Misses 194 194
Partials 57 57 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@test/nuxt/providers.test.ts`:
- Around line 115-143: Tests use an undefined variable emptyContext in calls to
cloudflareimages().getImage; replace uses of emptyContext with a call to
getEmptyContext() so the tests compile and match other tests in the file (update
the three occurrences in the cloudflareimages / cloudflareimage variant tests
where getImage is invoked).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 48f18279-22a1-48cb-ab4c-98b1ef55df1e
📒 Files selected for processing (7)
docs/content/3.providers/cloudflareimages.mdplayground/app/providers.tsplayground/nuxt.config.tssrc/provider.tssrc/runtime/providers/cloudflareimages.tstest/nuxt/providers.test.tstest/providers.ts
✅ Files skipped from review due to trivial changes (2)
- playground/app/providers.ts
- docs/content/3.providers/cloudflareimages.md
🚧 Files skipped from review as they are similar to previous changes (1)
- src/runtime/providers/cloudflareimages.ts
🔗 Linked issue
❓ Type of change
📚 Description
This PR adds Cloudflare Image provider, its a bit different from the main
Cloudflareprovider which is the cloudflare transformation service.This adds a variant modifier but still allows CLoudflare transformation url params (users needs to enable flexible variant)