You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demos/example-nextjs/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This example is built using [Next.js](https://nextjs.org/) and the [PowerSync JS
4
4
5
5
To see it in action:
6
6
7
-
1. Make sure to run `pnpm build:packages` in the root directory of this Git repo.
7
+
1. Make sure to run `pnpm install` and `pnpm build:packages` in the root directory of this repo.
8
8
2. Copy `.env.local.template` to `.env.local`, and complete the environment variables. You can generate a [temporary development token](https://docs.powersync.com/usage/installation/authentication-setup/development-tokens), or leave blank to test with local-only data.
9
-
3.`pnpm start`
10
-
4. Open the localhost URL in the browser displayed in the terminal output.
9
+
3.cd into this directory and run `pnpm start`.
10
+
4. Open the localhost URL displayed in the terminal output in your browser.
This is a minimal example demonstrating bundling with Vite. It attempts a connection to verify that web workers load correctly, but networks requests will fail since no credentials are configured. See [src/index.js](src/index.js) for details.
4
+
3
5
To see it in action:
4
6
5
-
1. Make sure to run `pnpm build:packages` in the root directory of this Git repo.
6
-
2.`pnpm start`
7
-
3. Open the localhost URL in the browser displayed in the terminal output.
7
+
1. Make sure to run `pnpm install` and `pnpm build:packages` in the root directory of this repo.
8
+
2.cd into this directory, and run `pnpm start`.
9
+
3. Open the localhost URL displayed in the terminal output in your browser.
This is a minimal example demonstrating bundling with Webpack. It attempts a connection to verify that web workers load correctly, but networks requests will fail since no credentials are configured. See [src/index.js](src/index.js) for details.
4
+
3
5
To see it in action:
4
6
5
-
1. Make sure to run `pnpm build:packages` in the root directory of this Git repo.
6
-
2.`pnpm start`
7
-
3. Open the localhost URL in the browser displayed in the terminal output.
7
+
1. Make sure to run `pnpm install` and `pnpm build:packages` in the root directory of this repo.
8
+
2.cd into this directory, and run `pnpm start`.
9
+
3. Open the localhost URL displayed in the terminal output in your browser.
0 commit comments