@redapollos/storm-form 0.2.1 → 0.2.3
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 +17 -0
- package/dist/storm-form.es.js +408 -397
- package/dist/storm-form.umd.cjs +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,4 +20,21 @@ npm install @redapollos/storm-form antd axios dayjs
|
|
|
20
20
|
- `axios` (>=1)
|
|
21
21
|
- `dayjs` (>=1)
|
|
22
22
|
|
|
23
|
+
## API Base URL Configuration
|
|
24
|
+
|
|
25
|
+
The package uses this default API URL if no override is provided:
|
|
26
|
+
|
|
27
|
+
- `https://storm-api.azurewebsites.net`
|
|
28
|
+
|
|
29
|
+
You can override it from the consuming app using one of these environment variables:
|
|
30
|
+
|
|
31
|
+
- `STORM_FORM_API_URL`
|
|
32
|
+
- `NEXT_PUBLIC_STORM_FORM_API_URL`
|
|
33
|
+
|
|
34
|
+
Resolution order is:
|
|
35
|
+
|
|
36
|
+
1. Runtime env var from the consuming app (`STORM_FORM_API_URL`, then `NEXT_PUBLIC_STORM_FORM_API_URL`)
|
|
37
|
+
2. Build-time `VITE_WEBAPI_URL` from this package build
|
|
38
|
+
3. Default URL above
|
|
39
|
+
|
|
23
40
|
...more later
|