Skip to content

Commit

Permalink
Only preload in prod
Browse files Browse the repository at this point in the history
And correct URL
  • Loading branch information
jakst committed Dec 22, 2024
1 parent 15ced65 commit d6c8f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/entry-server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default createHandler(() => (
<meta name="description" content="Your shopping list" />

<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="preload" href="/_build/Hubot-Sans-1.0.woff2" as="font" type="font/woff2" crossorigin="anonymous" />

<Show when={import.meta.env.PROD}>
<link rel="preload" href="/Hubot-Sans-1.0.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
<link rel="manifest" type="application/manifest+json" href="/manifest.webmanifest" />
</Show>

Expand Down

0 comments on commit d6c8f31

Please sign in to comment.