From 792cd1ff7a277f77897a42adf5b98db98b643a47 Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Tue, 20 Aug 2024 17:22:59 +0530 Subject: [PATCH] lib-assets to lib-build --- doc/SDK.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/SDK.md b/doc/SDK.md index 225f77e3ed..7b0aaa3d83 100644 --- a/doc/SDK.md +++ b/doc/SDK.md @@ -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.