Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
disables the service worker (#91)
Browse files Browse the repository at this point in the history
Disable the service worker as it currently loads index.html from cache for
all unknown paths. This doesn't work well with our Ingress setup because if
you visit /kubeless/ you end up getting the Dashboard instead of the Kubeapps
UI. We can consider re-enabling this once the Kubeless UI is integrated in
the Dashboard and we no longer need the external link.
  • Loading branch information
prydonius authored Feb 16, 2018
1 parent 34dbea7 commit 825c3e3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ import * as ReactDOM from "react-dom";

import Root from "./containers/Root";
import "./index.css";
import registerServiceWorker from "./registerServiceWorker";
// import registerServiceWorker from "./registerServiceWorker";

ReactDOM.render(<Root />, document.getElementById("root") as HTMLElement);
registerServiceWorker();

// Disable the service worker as it currently loads index.html from cache for
// all unknown paths. This doesn't work well with our Ingress setup because if
// you visit /kubeless/ you end up getting the Dashboard instead of the Kubeapps
// UI. We can consider re-enabling this once the Kubeless UI is integrated in
// the Dashboard and we no longer need the external link.

// registerServiceWorker();

0 comments on commit 825c3e3

Please sign in to comment.