Real-device fixes: Apple emoji, mobile fit, SSR i18n, Node 24#11
Merged
Conversation
Follow-ups from real-device (iPhone) testing of the share feature. - Emoji missing in the share image on iOS: canvas fillText doesn't rasterize system color emoji on iOS Safari. Bundle the 8 mood emojis as Apple-style PNGs (public/emoji/*.png, from iamcal/emoji-data img-apple-160) and drawImage them instead, with a text fallback — consistent Apple artwork on every device. Adds a codepoint to each mood; middleware now excludes /emoji/ (like /locales/) so the assets aren't caught by the locale redirect. - Share dialog didn't fit one screen on mobile: shorter preview on small screens (240px, 300px on sm+) and tighter dialog padding/gap on mobile. - Build log noise "Failed to load resources: translation 403": the client i18n module fetched translations over HTTP during SSG, hitting the production domain (403) needlessly. Guard the initial load to the browser; SEO/metadata already read translations from the filesystem. - Node 20 is deprecated on Vercel (builds fail after 2026-10-01): set engines.node to 24.x, bump @types/node and CI to Node 24. Note: Apple emoji artwork is © Apple Inc.; the images are redistributed via iamcal/emoji-data (common practice for web, but not officially licensed). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
iPhone 真机反馈修复:分享图片改用 Apple 风格 emoji、移动端弹窗一屏适配、跳过 SSR 期翻译请求(403)、升级 Node 24。