Skip to content

A local-first personal finance app

Remove plugin worker temporarily (#6052)

Michael Clarke83cfba35705
diff --git a/packages/desktop-client/vite.config.mts b/packages/desktop-client/vite.config.mts
index ef6b4715dd..57916cb511 100644
--- a/packages/desktop-client/vite.config.mts
+++ b/packages/desktop-client/vite.config.mts
@@ -159,22 +159,23 @@ export default defineConfig(async ({ mode }) => {
? undefined
: VitePWA({
registerType: 'prompt',
- strategies: 'injectManifest',
- srcDir: 'service-worker',
- filename: 'plugin-sw.js',
- manifest: {
- name: 'Actual',
- short_name: 'Actual',
- description: 'A local-first personal finance tool',
- theme_color: '#8812E1',
- background_color: '#8812E1',
- display: 'standalone',
- start_url: './',
- },
- injectManifest: {
- maximumFileSizeToCacheInBytes: 10 * 1024 * 1024, // 10MB
- swSrc: `service-worker/plugin-sw.js`,
- },
+ // TODO: The plugin worker build is currently disabled due to issues with offline support. Fix this
+ // strategies: 'injectManifest',
+ // srcDir: 'service-worker',
+ // filename: 'plugin-sw.js',
+ // manifest: {
+ // name: 'Actual',
+ // short_name: 'Actual',
+ // description: 'A local-first personal finance tool',
+ // theme_color: '#8812E1',
+ // background_color: '#8812E1',
+ // display: 'standalone',
+ // start_url: './',
+ // },
+ // injectManifest: {
+ // maximumFileSizeToCacheInBytes: 10 * 1024 * 1024, // 10MB
+ // swSrc: `service-worker/plugin-sw.js`,
+ // },
devOptions: {
enabled: true, // We need service worker in dev mode to work with plugins
type: 'module',
diff --git a/upcoming-release-notes/6052.md b/upcoming-release-notes/6052.md
new file mode 100644
index 0000000000..15a33999f5
--- /dev/null
+++ b/upcoming-release-notes/6052.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [MikesGlitch]
+---
+
+Remove the plugins service worker until next release