feat: image export, PDF image compression, and hydration/worker fixes - #6
Open
dh031200 wants to merge 1 commit into
Open
feat: image export, PDF image compression, and hydration/worker fixes#6dh031200 wants to merge 1 commit into
dh031200 wants to merge 1 commit into
Conversation
…er errors - Add ImageExportModal to download pages as PNG/JPG in a ZIP (jszip) - Add image compression option in PDF settings (@jsquash/jpeg), with a fast path that recompresses embedded images only - Fix hydration mismatch: useTranslations now renders 'en' during SSR and hydration via useSyncExternalStore, then switches to the browser language - Skip service worker registration in development (next-pwa does not emit /sw.js there, causing a 404) - Load the pdf.js worker bundled from pdfjs-dist instead of a stale copy in /public; the lockfile bump to 5.7.284 mismatched the 5.4.149 worker and broke all PDF uploads
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.
Summary
useTranslationsnow rendersenduring SSR/hydration viauseSyncExternalStore, then switches to the browser language/sw.jsthere, causing a 404)/public. The lockfile bump to 5.7.284 mismatched the 5.4.149 worker and broke every PDF upload with "Failed to process ...".Verification
next dev: no hydration or sw.js errors, title renders as "PDF 마법사"tsc --noEmitpasses,npm run buildsucceeds and emits.next/static/media/pdf.worker.min.*.mjs