Skip to content

Commit

Permalink
Revert "Revert "chore(docs): use prefetch service worker" (QwikDev#6786
Browse files Browse the repository at this point in the history
…)"

This reverts commit b6171cc.
  • Loading branch information
maiieul committed Aug 27, 2024
1 parent 5c0d800 commit 1a19004
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/docs/src/root.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { component$, useContextProvider, useStore } from '@builder.io/qwik';
import { QwikCityProvider, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
import {
PrefetchGraph,
PrefetchServiceWorker,
component$,
useContextProvider,
useStore,
} from '@builder.io/qwik';
import { QwikCityProvider, RouterOutlet } from '@builder.io/qwik-city';
import RealMetricsOptimization from './components/real-metrics-optimization/real-metrics-optimization';
import { RouterHead } from './components/router-head/router-head';
import { GlobalStore, type SiteStore } from './context';
Expand Down Expand Up @@ -54,7 +60,8 @@ export default component$(() => {
<meta charset="utf-8" />
<script dangerouslySetInnerHTML={uwu} />
<RouterHead />
<ServiceWorkerRegister />
<PrefetchServiceWorker />
<PrefetchGraph />
{/* <script dangerouslySetInnerHTML={`(${collectSymbols})()`} /> */}
<Insights publicApiKey={import.meta.env.PUBLIC_QWIK_INSIGHTS_KEY} />
</head>
Expand Down

0 comments on commit 1a19004

Please sign in to comment.