Service Worker React Plugin

Hi,

I was wondering whether it's possible to use a service worker in the ReactJS Kibana plugin?

The following command is failing
navigator.serviceWorker.register("serviceWorker.js")
and I'm assuming the reason is because that file doesn't exist at the root of my application (e.g. http://localhost:5601/hzn/app/serviceWorker.js)

So the question is, where is the root of my application in my folder? Because it doesn't appear to be the public folder.

Regards,
Dilshan

Hmm, I don't believe you'll be able to accomplish this in the current system, because there's currently no way to specify which JavaScript files you want to serve statically outside of what gets built using our build system. You may want to open a GitHub issue requesting the ability to do this.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.