Skip to content

Commit 01e312b

Browse files
docs: user junobuild/core-peer for next (#65)
Signed-off-by: David Dal Busco <[email protected]>
1 parent 2c9a66d commit 01e312b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/guides/astro.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ Add an `insert` function to persist a document.
6464
import { initJuno, setDoc } from "@junobuild/core";
6565
6666
// Initialize Juno
67+
// TODO: Replace 'satelliteId' with your actual satellite ID
6768
document.addEventListener(
6869
"DOMContentLoaded",
6970
async () => {
7071
await initJuno({
71-
satelliteId: "nkzsw-gyaaa-aaaal-ada3a-cai",
72+
satelliteId: "aaaaa-bbbbb-ccccc-ddddd-cai",
7273
});
7374
},
7475
{ once: true }

docs/guides/nextjs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ npx create-next-app@latest myjunoapp
3939

4040
### 3. Install the Juno SDK core library
4141

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.
4343

44-
Navigate to the Next.js app and install `@junobuild/core`.
44+
Navigate to the Next.js app and install `@junobuild/core-peer`.
4545

4646
```bash
47-
cd myjunoapp && npm i @junobuild/core
47+
cd myjunoapp && npm i @junobuild/core-peer
4848
```
4949

5050
### 4. Insert data from your app
@@ -57,7 +57,7 @@ Add an `insert` function to persist a document.
5757
"use client";
5858

5959
import { useEffect, useState } from "react";
60-
import { type Doc, initJuno, setDoc } from "@junobuild/core";
60+
import { type Doc, initJuno, setDoc } from "@junobuild/core-peer";
6161

6262
type Record = {
6363
hello: string;
@@ -70,7 +70,7 @@ export default function Home() {
7070
useEffect(() => {
7171
(async () =>
7272
await initJuno({
73-
satelliteId: "wjar4-kiaaa-aaaal-ab4va-cai",
73+
satelliteId: "aaaaa-bbbbb-ccccc-ddddd-cai",
7474
}))();
7575
}, []);
7676

0 commit comments

Comments
 (0)