fix: attempt deeplink fix for pwa#754
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe pull request introduces modifications across several parts of the application. In the Next.js configuration, new security headers are added. The PaymentPage component’s rendering logic has been simplified for consistency. The apple-app-site-association API now explicitly sets the Content-Type header, and the manifest file is extended with additional properties for deep linking. Additional metadata is provided for mobile web app configurations, and a new service worker fetch event listener has been implemented to handle PWA deep linking by focusing or opening the appropriate window. Changes
Sequence Diagram(s)sequenceDiagram
participant Browser as Browser
participant SW as Service Worker
participant Client as PWA Window
Browser->>SW: Navigation request (fetch event)
SW->>SW: Check if event.mode === "navigate"
SW->>SW: Invoke self.clients.matchAll()
alt Active PWA window(s) exist
SW->>Client: Focus window and navigate to requested URL
else No active window found
SW->>Browser: Open new window with the requested URL
end
SW-->>Browser: Return response (or fallback to default fetch on error)
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
🧰 Additional context used🧬 Code Definitions (1)src/app/api/apple-app-site-association/route.ts (4)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (11)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
contributes to TASK-9537
Summary by CodeRabbit
New Features
Refactor