Skip to content

fix: restore archive thumbnails on production#60

Merged
posaune0423 merged 1 commit intomainfrom
fix/archive-thumbnail-production-regression
Mar 14, 2026
Merged

fix: restore archive thumbnails on production#60
posaune0423 merged 1 commit intomainfrom
fix/archive-thumbnail-production-regression

Conversation

@posaune0423
Copy link
Collaborator

Summary

  • stop wrapping archive fallback gateway URLs with Cloudflare /cdn-cgi/image transforms
  • keep local archive paths on the existing transform path
  • add regression tests for external and local archive image source generation

Testing

  • NEXT_PUBLIC_BASE_URL=https://doomindex.fun NEXT_PUBLIC_GENERATION_INTERVAL_MS=600000 bun test --preload=./tests/preload.ts tests/unit/lib/archive-image-sources.test.ts tests/unit/components/ui/progressive-image.test.tsx
  • bun run format
  • bun --env-file=.example.vars run lint
  • bun --env-file=.example.vars run typecheck
  • bun --env-file=.example.vars run build

Closes #59.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 14, 2026

Warning

Rate limit exceeded

@posaune0423 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 13 minutes and 35 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b9569dd8-904b-4bdb-8710-08e302fd5429

📥 Commits

Reviewing files that changed from the base of the PR and between 7c08421 and f295903.

📒 Files selected for processing (2)
  • src/lib/archive-image-sources.ts
  • tests/unit/lib/archive-image-sources.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/archive-thumbnail-production-regression
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

📦 esbuild Bundle Analysis for doom-index

This analysis was generated by esbuild-bundle-analyzer. 🤖

Meta File Out File Size (raw) Note
.open-next/server-functions/default/handler.mjs.meta.json .open-next/server-functions/default/handler.mjs 10.67 MB ⚠️ +55 B (+0.0%)
Largest paths These visualization shows top 20 largest paths in the bundle.

Meta file: .open-next/server-functions/default/handler.mjs.meta.json, Out file: .open-next/server-functions/default/handler.mjs

Path Size
.open-next/server-functions/default ${{\color{Goldenrod}{ █████████████████████████ }}}$ 100.0%, 10.67 MB
.open-next/cloudflare-templates/shims ${{\color{Goldenrod}{ }}}$ 0.0%, 368 B
optional-deps-missing-dependency:/critters ${{\color{Goldenrod}{ }}}$ 0.0%, 141 B
Details

Next to the size is how much the size has increased or decreased compared with the base branch of this PR.

  • ‼️: Size increased by 20% or more. Special attention should be given to this.
  • ⚠️: Size increased in acceptable range (lower than 20%).
  • ✅: No change or even downsized.
  • 🗑️: The out file is deleted: not found in base branch.
  • 🆕: The out file is newly found: will be added to base branch.

@cloudflare-workers-and-pages
Copy link
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
doom-index f295903 Commit Preview URL

Branch Preview URL
Mar 14 2026, 11:27 PM

@posaune0423 posaune0423 self-assigned this Mar 14, 2026
@posaune0423 posaune0423 added the type:bug 🐛 Bug fix label Mar 14, 2026
@posaune0423 posaune0423 merged commit 0289ad0 into main Mar 14, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Archive page thumbnails fail on production due to Cloudflare transform / next/image path

1 participant