Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/routes/solid-start/guides/service-workers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ title: "Service workers"
To register a service worker:

1. Place your service-worker file in the `public` directory (e.g., `public/sw.js`), making it available at the root URL (`/sw.js`).
2. Add registration logic to the `client.entry.tsx` file.
2. Add registration logic to the `entry-client.tsx` file.

```tsx {6-11} title="src/client.entry.tsx"
```tsx {6-11} title="src/entry-client.tsx"
// @refresh reload
import { mount, StartClient } from "@solidjs/start/client";

Expand Down
Loading