Skip to content

fix(ssr): route SSR API calls to internal domain to avoid Cloudflare blocks#26

Merged
smoretti merged 1 commit into
BgeeDB:developfrom
vemonet:fix-cloudflare-ssr-api
Jun 11, 2026
Merged

fix(ssr): route SSR API calls to internal domain to avoid Cloudflare blocks#26
smoretti merged 1 commit into
BgeeDB:developfrom
vemonet:fix-cloudflare-ssr-api

Conversation

@vemonet

@vemonet vemonet commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

SSR loaders called the public www.bgee.org/api, looping back through Cloudflare and getting intermittently rate-limited/challenged, surfacing as random 404s on gene pages.
SSR now uses INTERNAL_API_DOMAIN env variable when set.

Also map upstream failures (timeout/5xx/CF) to 502 instead of 404 in gene page

@fbastian @smoretti

…blocks

SSR loaders called the public www.bgee.org/api, looping back through Cloudflare and getting intermittently rate-limited/challenged, surfacing as random 404s on gene pages. SSR now uses `INTERNAL_API_DOMAIN` env variable when set. Also map upstream failures (timeout/5xx/CF) to 502 instead of 404
@smoretti smoretti merged commit 7fe59b2 into BgeeDB:develop Jun 11, 2026
2 of 3 checks passed
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