Skip to content

Remove PWA service worker#834

Merged
danditomaso merged 1 commit into
meshtastic:mainfrom
danditomaso:fix/uninstall-service-worker
Sep 7, 2025
Merged

Remove PWA service worker#834
danditomaso merged 1 commit into
meshtastic:mainfrom
danditomaso:fix/uninstall-service-worker

Conversation

@danditomaso

Copy link
Copy Markdown
Collaborator

Description

This PR adds the VitePWA package to the web app, but instead of re-install the PWA it will force the service worker to be removed from users browsers.

Related Issues

This has been an ongoing effort to ensure we smoothly remove the PWA service worker.

Changes Made

  • Added VitePWA library back to package.json
  • Added selfDestroy directive to config

Testing Done

Ummm, it works.

Checklist

  • Code follows project style guidelines
  • Documentation has been updated or added
  • Tests have been added or updated
  • All i18n translation labels have been added (read
    CONTRIBUTING_I18N_DEVELOPER_GUIDE.md for more details)

@vercel

vercel Bot commented Sep 5, 2025

Copy link
Copy Markdown

@danditomaso is attempting to deploy a commit to the Meshtastic Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds the VitePWA package back to the web application with the purpose of removing existing service workers from users' browsers instead of installing new ones. This is part of an ongoing effort to smoothly remove PWA functionality.

  • Added VitePWA dependency to package.json
  • Configured VitePWA with selfDestroying: true directive to remove service workers
  • Replaced commented-out PWA configuration with the self-destructing setup

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
packages/web/vite.config.ts Imports VitePWA and configures it with selfDestroying directive to remove service workers
packages/web/package.json Adds vite-plugin-pwa dependency and reorders vite dependency alphabetically

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@danditomaso danditomaso changed the title fix: added directive to remove service worker Remove PWA service worker Sep 5, 2025
@vercel

vercel Bot commented Sep 7, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web-test Ready Ready Preview Comment Sep 7, 2025 4:50pm

@danditomaso danditomaso merged commit d8df408 into meshtastic:main Sep 7, 2025
4 checks passed
@danditomaso danditomaso deleted the fix/uninstall-service-worker branch September 7, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants