Repository navigation
PWA (installable, offline) and 12 → 8 serverless functions - #21
Merged
Merged
Conversation
The six route files move to api/_lib/routes; api/daily.ts and api/ranked.ts dispatch by action, and vercel.json rewrites the old /api/<group>/<action> URLs so clients are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu
vite-plugin-pwa precaches the app shell and every chunk, so practice (built-in snippets, words, passages) keeps working without a network. A toast offers new versions instead of reloading mid-run, and says when you are offline. Settings gets an install card (prompt on Chrome/Edge, Add to Home Screen on iOS). Streak reminders fall back to the service worker where the page cannot show notifications (Android Chrome). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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
Fewer functions (12 → 8)
api/_lib/routes/.api/daily.tsandapi/ranked.tsdispatch byaction.vercel.jsonrewrites/api/daily/:actionand/api/ranked/:action, so client URLs are unchanged.PWA
vite-plugin-pwaprecaches the app shell and every chunk (~2 MB). Practice keeps working offline with built-in snippets, words and passages.id,scopeand shortcuts (Daily, Duel, Stats).sw.jsis served withCache-Control: no-cache.registration.showNotificationwhere page notifications are not allowed (Android Chrome).Test plan
tsc -band the build pass.🤖 Generated with Claude Code
https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu
Generated by Claude Code