Skip to content

feat: add offline support with Workbox service worker#518

Open
hashhhh-16 wants to merge 3 commits into
niharika-mente:mainfrom
hashhhh-16:feat/service-worker-offline-support
Open

feat: add offline support with Workbox service worker#518
hashhhh-16 wants to merge 3 commits into
niharika-mente:mainfrom
hashhhh-16:feat/service-worker-offline-support

Conversation

@hashhhh-16

Copy link
Copy Markdown
Contributor

Summary

  • Added PWA support using vite-plugin-pwa
  • Added service worker registration logic
  • Added offline fallback page
  • Added tests for service worker registration
  • Configured Workbox precaching for static assets
  • Fixed duplicate product state declaration in ProductPage.jsx that prevented production builds

Validation

  • npm run test -- src/utils/registerSW.test.js
  • npm run build
  • Verified Workbox generates sw.js and precache assets

closes #440

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the niharika-mente's projects Team on Vercel.

A member of the Team first needs to authorize it.

Aamod007
Aamod007 previously approved these changes Jul 2, 2026

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aamod007 Aamod007 self-requested a review July 2, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add offline support using a Service Worker (PWA basics)

2 participants