File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,12 @@ Add an `insert` function to persist a document.
64
64
import { initJuno , setDoc } from " @junobuild/core" ;
65
65
66
66
// Initialize Juno
67
+ // TODO: Replace 'satelliteId' with your actual satellite ID
67
68
document .addEventListener (
68
69
" DOMContentLoaded" ,
69
70
async () => {
70
71
await initJuno ({
71
- satelliteId: " nkzsw-gyaaa-aaaal-ada3a -cai" ,
72
+ satelliteId: " aaaaa-bbbbb-ccccc-ddddd -cai" ,
72
73
});
73
74
},
74
75
{ once: true }
Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ npx create-next-app@latest myjunoapp
39
39
40
40
### 3. Install the Juno SDK core library
41
41
42
- Use ` @junobuild/core ` client library which provides a convenient interface for working with Juno from a Next.js app.
42
+ Use ` @junobuild/core-peer ` client library which provides a convenient interface for working with Juno from a Next.js app.
43
43
44
- Navigate to the Next.js app and install ` @junobuild/core ` .
44
+ Navigate to the Next.js app and install ` @junobuild/core-peer ` .
45
45
46
46
``` bash
47
- cd myjunoapp && npm i @junobuild/core
47
+ cd myjunoapp && npm i @junobuild/core-peer
48
48
```
49
49
50
50
### 4. Insert data from your app
@@ -57,7 +57,7 @@ Add an `insert` function to persist a document.
57
57
" use client" ;
58
58
59
59
import { useEffect , useState } from " react" ;
60
- import { type Doc , initJuno , setDoc } from " @junobuild/core" ;
60
+ import { type Doc , initJuno , setDoc } from " @junobuild/core-peer " ;
61
61
62
62
type Record = {
63
63
hello: string ;
@@ -70,7 +70,7 @@ export default function Home() {
70
70
useEffect (() => {
71
71
(async () =>
72
72
await initJuno ({
73
- satelliteId: " wjar4-kiaaa-aaaal-ab4va -cai" ,
73
+ satelliteId: " aaaaa-bbbbb-ccccc-ddddd -cai" ,
74
74
}))();
75
75
}, []);
76
76
You can’t perform that action at this time.
0 commit comments