Replace Cloudinary image proxy with Prismic/Imgix transforms#12
Open
erikisberg wants to merge 1 commit into
Open
Replace Cloudinary image proxy with Prismic/Imgix transforms#12erikisberg wants to merge 1 commit into
erikisberg wants to merge 1 commit into
Conversation
Cloudinary was only used as an on-the-fly transform proxy (fetch mode) and for fetching YouTube/Vimeo posters - source images already live in Prismic, which serves them via Imgix. Apply resize/crop/format/quality as query params directly on the Prismic image URL instead, preserving the editorial crop (rect). Embed posters now use the oEmbed thumbnail_url directly. Removes the /media proxy route, lib/cloudinary-proxy.js and the cloudinary dependency, so the app no longer depends on the Cloudinary account being shut down on 2026-09-01. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bakgrund
Cloudinary-kontot som appen använt stängs 2026-09-01. Cloudinary användes bara som transform-proxy i
fetch-läge (resize/crop/format/quality) samt för att hämta YouTube/Vimeo-posters — källbilderna ligger redan i Prismic, som servar dem via Imgix.Ändring
components/base/index.js:src()/srcset()översätter Cloudinary-tokens till Imgix-query-params direkt på Prismic-URL:en (c_fill→fit=crop,f_jpg→fm=jpg,w/h/q). Redaktörens beskärning (rect) bevaras.serialize.js+video()i page/about/terms) använderoembed.thumbnail_urldirekt./media-proxyrouten iserver.js,lib/cloudinary-proxy.jsochcloudinary-beroendet..env.exampleuppdaterade.Verifierat
npm run buildok,standardrent (enda kvarvarande lint-felet är pre-existerande iserver.js).spillosoferna, release v13) —/malenserverar nu Imgix-bilder, noll/media- eller cloudinary-referenser.Efter merge är appen inte längre beroende av Cloudinary-kontot.
🤖 Generated with Claude Code