Skip to content

fix: self-host author avatars blocked by CSP - #503

Merged
AmanVarshney01 merged 2 commits into
mainfrom
fix/author-avatars-csp
Jun 2, 2026
Merged

fix: self-host author avatars blocked by CSP#503
AmanVarshney01 merged 2 commits into
mainfrom
fix/author-avatars-csp

Conversation

@ankur-arch

Copy link
Copy Markdown
Contributor

The site's img-src CSP allows raw.githubusercontent.com but not github.com or avatars.githubusercontent.com, so the four authors using https://github.com/.png avatars rendered broken. Download the images to static/authors/ and point authors.json at the local paths, matching the pattern already used for dmfay and ryanchenkie.

The site's img-src CSP allows raw.githubusercontent.com but not
github.com or avatars.githubusercontent.com, so the four authors using
https://github.com/<user>.png avatars rendered broken. Download the
images to static/authors/ and point authors.json at the local paths,
matching the pattern already used for dmfay and ryanchenkie.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented May 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dataguide Ready Ready Preview, Comment May 27, 2026 11:05am

Request Review

@ankur-arch ankur-arch self-assigned this May 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR changes the following pages (Vercel Preview Deploy links):

Changed Vercel links

(Note that links will only be valid after Vercel preview deploy succeeded)

Pass continueOnFailure: true to gatsby-plugin-algolia so a transient
Algolia outage or stale credential turns the post-build index push
into a warning rather than a panicOnBuild. Runtime search is
unaffected — it talks to Algolia directly via algoliasearch/lite at
load time.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@AmanVarshney01
AmanVarshney01 merged commit 61a6149 into main Jun 2, 2026
6 checks passed
@AmanVarshney01
AmanVarshney01 deleted the fix/author-avatars-csp branch June 2, 2026 14:26
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.

2 participants