Skip to content

Commit

Permalink
lib-assets to lib-build
Browse files Browse the repository at this point in the history
  • Loading branch information
MidhunSureshR authored Aug 20, 2024
1 parent 6dfb756 commit 792cd1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/SDK.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ In addition to the assets mentioned above, you will also need to supply a servic
This is how you can do that:
1. create a `public` directory in your project root.
2. In your `vite.config.js` file, configure [publicDir](https://vitejs.dev/config/shared-options.html#publicdir) option to point to the directory you just created.
3. Symlink `node_modules/hydrogen-view-sdk/lib-assets/sw.js` to `public/sw.js`:
3. Symlink `node_modules/hydrogen-view-sdk/lib-build/sw.js` to `public/sw.js`:
```bash
cd public
ln -s ../node_modules/hydrogen-view-sdk/lib-assets/sw.js sw.js
ln -s ../node_modules/hydrogen-view-sdk/lib-build/sw.js sw.js
```
Now `sw.js` will be in the root of your dev server/ build root.

Expand Down

0 comments on commit 792cd1f

Please sign in to comment.