Skip to content

Commit 92a7817

Browse files
committed
Readme entries.
1 parent 8c5d773 commit 92a7817

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

demos/react-native-web-supabase-todolist/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bucket_definitions:
5050
5151
### Configure the app
5252
53-
#### 1. Set up environment variables:
53+
#### 1. Set up environment variables:
5454
5555
Copy the `.env.local.template` file:
5656

@@ -65,7 +65,7 @@ Then edit `.env.local` to insert your Supabase and PowerSync project credentials
6565
This is required for the React Native Web implementation. Learn more in [our docs](https://docs.powersync.com/client-sdk-references/react-native-and-expo/react-native-web-support).
6666

6767
```bash
68-
mkdir -p public/@powersync && cp -r node_modules/@powersync/web/dist/* public/@powersync/
68+
pnpm powersync-web copy-assets
6969
```
7070

7171
### Run the app
@@ -88,4 +88,4 @@ Run on Android:
8888

8989
```sh
9090
pnpm android
91-
```
91+
```

packages/web/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# PowerSync SDK for Web
66

7-
*[PowerSync](https://www.powersync.com) is a sync engine for building local-first apps with instantly-responsive UI/UX and simplified state transfer. Syncs between SQLite on the client-side and Postgres, MongoDB or MySQL on the server-side.*
7+
_[PowerSync](https://www.powersync.com) is a sync engine for building local-first apps with instantly-responsive UI/UX and simplified state transfer. Syncs between SQLite on the client-side and Postgres, MongoDB or MySQL on the server-side._
88

99
This package (`packages/web`) is the PowerSync SDK for JavaScript Web clients. It is an extension of `packages/common`.
1010

@@ -40,6 +40,15 @@ See the [example Vite config](https://github.com/powersync-ja/powersync-js/blob/
4040

4141
Our [full SDK reference](https://docs.powersync.com/client-sdk-references/js-web) contains everything you need to know to get started implementing PowerSync in your project.
4242

43+
# Public Workers
44+
45+
For some frameworks, it may be required to configure the web workers ([see the docs](https://docs.powersync.com/client-sdk-references/react-native-and-expo/react-native-web-support)).
46+
The `@powersync/web` package includes a CLI utility which can copy the required assets to the `public` directory (configurable with the `--output` option).
47+
48+
```bash
49+
pnpm powersync-web copy-assets
50+
```
51+
4352
# Changelog
4453

4554
A changelog for this SDK is available [here](https://releases.powersync.com/announcements/powersync-js-web-client-sdk).

0 commit comments

Comments
 (0)