hcengineering / hcengineering/platform
Official desktop application on selfhosted setup fails to load serviceWorker.js
- Dominant language
- TypeScript
- Stars
- 27.7k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
### Description of the issue
Huly platform selfhosted. Desktop application launched with "--server https://our.domain.name" param on MacOS 15.2.
In Developer Tools, Network tab I see "serviceWorker.js" not loaded due to ERR_FILE_NOT_FOUND. The path that the app tries to load it from is "file:///serviceWorker.js", should be either our server, or application's own app.asar, if I'm not mistaken.
Probably that's the reason push notifications are not working.
### Your environment
* Version of Huly - 0.6.377
* Browser (and version) - Electron, official app build, version 0.6.377
* Your operating system (and version) - MacOS 15.2
### Steps to reproduce
Start the desktop application.
### Expected behaviour (Guys, you have a type here, it should be "behavior")
The "serviceWorker.js" should load correctly
### Actual behaviour (and here too is typo, forgive me for being such a bookworm)
### Possible solutions
(Not obligatory)
Maybe I'm missing some parameter somewhere?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue in the official Electron desktop application with the `--server https://our.domain.name` parameter and inspect the Developer Tools Network request for `serviceWorker.js`. Trace where that file is resolved from; done means it loads from the configured server or the application's app.asar instead of `file:///serviceWorker.js`, restoring the expected service-worker behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, macos, typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100