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/reference/plugins.mdx
+19-32Lines changed: 19 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,23 +15,13 @@ keywords:
15
15
16
16
# Plugins
17
17
18
-
Juno provides various plugins to simplify your development workflow. We also warmly welcome community contributions. If you would like to create or submit plugins or any libraries, please reach out or explore our [repository](https://github.com/junobuild/plugins)!
18
+
Juno provides various plugins to simplify your development workflow. Each plugin automatically loads values from your `juno.config` file into your build environment, so you can call `initSatellite()` and `initOrbiter()` without extra config.
19
19
20
20
---
21
21
22
22
## Next.js Plugin
23
23
24
-
If you are developing your app using Next.js, this plugin automatically loads Satellite and Orbiter IDs from your project's configuration file.
25
-
26
-
These values allow you to instantiate Juno in your code without the need to manually define environment variables.
27
-
28
-
```javascript
29
-
// Initialize the Satellite using values from juno.config
30
-
awaitinitSatellite();
31
-
32
-
// Initialize analytics using values from juno.config
33
-
initOrbiter();
34
-
```
24
+
Use this plugin to load Juno configuration into your Next.js build with zero manual setup.
35
25
36
26
### Installation
37
27
@@ -52,25 +42,36 @@ In your Next.js config file — whether it's `next.config.js`, `next.config.ts`,
@@ -110,17 +106,7 @@ Discover additional information in the library's [README](https://github.com/jun
110
106
111
107
## Vite Plugin
112
108
113
-
If you are developing your app using Vite, this plugin automatically loads the Satellite ID from your project's configuration file. If you are using analytics, it also loads the Orbiter ID too.
114
-
115
-
These values allow you to instantiate Juno in your code without the need to manually define environment variables.
116
-
117
-
```javascript
118
-
// Initialize the Satellite using values from juno.config
119
-
awaitinitSatellite();
120
-
121
-
// Initialize analytics using values from juno.config
122
-
initOrbiter();
123
-
```
109
+
Use this plugin to integrate Juno configuration into your Vite build process automatically.
124
110
125
111
### Installation
126
112
@@ -140,6 +126,7 @@ Add the plugin to your Vite configuration — whether you're using TypeScript or
140
126
importjunofrom"@junobuild/vite-plugin";
141
127
142
128
exportdefaultdefineConfig({
129
+
// Automatically injects values from juno.config for the build
0 commit comments