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: docs/setup-the-sdk.mdx
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,21 +53,26 @@ It is generally recommended to initialize globally the library at the top of you
53
53
54
54
## Configuration
55
55
56
-
Juno uses a configuration file to determine which Satellite to connect to. Scaffold a minimal config file using:
56
+
Juno uses a configuration file to determine which Satellite to connect to.
57
+
58
+
You can scaffold a minimal `juno.config` file using:
57
59
58
60
```bash
59
61
npx @junobuild/cli init --minimal
60
62
```
61
63
62
-
This creates a `juno.config` file — in TypeScript, JavaScript, or JSON depending on your preferences — at the root of your project.
64
+
This creates a `juno.config` file — in TypeScript, JavaScript, or JSON depending on your preferences — at the root of your project. It contains metadata such as the Satellite ID used during SDK initialization.
65
+
66
+
If you're using **Next.js** or **Vite**, we recommend installing the official plugin. It automatically loads values from your config file and injects them into your build as environment variables.
63
67
64
-
From there, if you're using **Next.js** or **Vite**, install the official plugin. It reads your config file and injects environment variables automatically for the SDK — no need to pass anything manually.
68
+
This means you can call `initSatellite()` without passing any parameters, the SDK will read them automatically from `process.env` or `import.meta.env`.
0 commit comments