sitemana-widget-embed 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/dist/widget.js +58 -525
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -13,15 +13,23 @@ The package is built with a canonical backend API origin baked in at build time.
|
|
|
13
13
|
|
|
14
14
|
## Build
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
The Vite build auto-loads the repo root `.env` and `.env.local`, then falls back to the current shell environment.
|
|
17
|
+
|
|
18
|
+
Set one of the following in the repo root `.env` before building the package:
|
|
17
19
|
|
|
18
20
|
- `SITEMANA_WIDGET_API_BASE`
|
|
19
21
|
- `NEXT_PUBLIC_API_URL`
|
|
20
22
|
|
|
21
23
|
Example:
|
|
22
24
|
|
|
25
|
+
```env
|
|
26
|
+
SITEMANA_WIDGET_API_BASE="http://localhost:4000"
|
|
27
|
+
NEXT_PUBLIC_API_URL="http://localhost:4000"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Then run:
|
|
31
|
+
|
|
23
32
|
```powershell
|
|
24
|
-
$env:SITEMANA_WIDGET_API_BASE="http://localhost:4000"
|
|
25
33
|
corepack pnpm --filter sitemana-widget-embed build
|
|
26
34
|
```
|
|
27
35
|
|