Conversation
✅ Deploy Preview for biomejs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
WalkthroughUpdated project to Astro v6 and bumped related Starlight/Astro devDependencies. Switched several blog author avatar URLs to GitHub’s avatars.githubusercontent.com format. Removed the Vite alias mapping Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
58f91c8 to
2227ef2
Compare
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 `@src/components/GitHubAvatar.astro`:
- Around line 14-15: The avatar image URL in src/components/GitHubAvatar.astro
uses avatars.githubusercontent.com (see the image template variable using
member.data.id), but that hostname is not included in the Astro image allowlist;
update the Astro config's image.domains array (the domains list in
astro.config.ts) to add "avatars.githubusercontent.com" alongside "github.com",
"raw.githubusercontent.com" and "img.shields.io" so Astro can optimise the
avatar images referenced by the image variable in GitHubAvatar.astro.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: a8a9b360-ee63-4daf-b5b0-e879c80bdd7b
📒 Files selected for processing (4)
src/components/Avatar.astrosrc/components/GitHubAvatar.astrosrc/content.config.tssrc/content/team.json
🚧 Files skipped from review as they are similar to previous changes (1)
- src/content.config.ts
| const url = `https://github.com/${member.id}`; | ||
| const image = `https://avatars.githubusercontent.com/u/${member.data.id}?v=4&s=200`; |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
fd -HI '^astro\.config\.(mjs|mts|ts|js|cjs)$' -t f | while read -r file; do
echo "== $file =="
rg -n 'avatars\.githubusercontent\.com|image\s*:|remotePatterns|domains' "$file" || true
doneRepository: biomejs/website
Length of output: 589
Add avatars.githubusercontent.com to Astro image domains allowlist.
The code uses avatars.githubusercontent.com for avatar images, but it's missing from the domains array in astro.config.ts (line 1037). Add it alongside the other GitHub domains to enable image optimisation.
Allowlist fix location
image: {
domains: ["github.com", "raw.githubusercontent.com", "avatars.githubusercontent.com", "img.shields.io"],
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@src/components/GitHubAvatar.astro` around lines 14 - 15, The avatar image URL
in src/components/GitHubAvatar.astro uses avatars.githubusercontent.com (see the
image template variable using member.data.id), but that hostname is not included
in the Astro image allowlist; update the Astro config's image.domains array (the
domains list in astro.config.ts) to add "avatars.githubusercontent.com"
alongside "github.com", "raw.githubusercontent.com" and "img.shields.io" so
Astro can optimise the avatar images referenced by the image variable in
GitHubAvatar.astro.
Summary
Closes #4070
Feel free to take over or add other commits in order to fix the build if it fails