Skip to content

Commit

Permalink
fix: vite base
Browse files Browse the repository at this point in the history
fix: disable service worker
  • Loading branch information
cherninlab committed Sep 23, 2024
1 parent 32c7eb6 commit 14fadf2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions packages/demo/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { component$ } from "@builder.io/qwik";
import {
QwikCityProvider,
RouterOutlet,
ServiceWorkerRegister,
} from "@builder.io/qwik-city";
import { isDev } from "@builder.io/qwik/build";

import "./global.css";

Expand All @@ -17,7 +15,6 @@ export default component$(() => {
</head>
<body lang="en">
<RouterOutlet />
{!isDev && <ServiceWorkerRegister />}
</body>
</QwikCityProvider>
);
Expand Down
1 change: 1 addition & 0 deletions packages/demo/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default defineConfig((): UserConfig => {
"Cache-Control": "public, max-age=600",
},
},
base: "/breek/",
};
});
// *** utils ***
Expand Down

0 comments on commit 14fadf2

Please sign in to comment.