LearnNewsExamplesServices
Frontmatter
id8861
titleFix Worker Paths for Production and Bump Version
stateOpen
labels
bugaicore
assignees[]
createdAtJan 22, 2026, 1:08 AM
updatedAtJan 22, 2026, 1:08 AM
githubUrlhttps://github.com/neomjs/neo/issues/8861
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]

Fix Worker Paths for Production and Bump Version

Openbugaicore
tobiu
tobiu commented on Jan 22, 2026, 1:08 AM

This task fixes critical path resolution issues for dist/production builds and bumps the version to invalidate stale Service Worker caches.

  1. Fix Worker Paths: In dist/production, worker files (appworker.js, etc.) are located at the project root (or dist/production/), not in src/worker/. Manager.mjs was incorrectly using workerBasePath (src/worker/) for these files.

    • Update src/worker/Manager.mjs to use Neo.config.basePath for workers when useMjsFiles is false.
    • Update src/main/addon/ServiceWorker.mjs to always use Neo.config.basePath for serviceworker.js, as it resides at the build root.
  2. Bump Version: Increment Neo.config.version in src/DefaultConfig.mjs and package.json to 11.23.1. This changes the cacheName in ServiceBase, forcing the Service Worker to create a fresh cache and abandon the stale one causing runtime errors.

tobiu added the bug label on Jan 22, 2026, 1:08 AM
tobiu added the ai label on Jan 22, 2026, 1:08 AM
tobiu added the core label on Jan 22, 2026, 1:08 AM