@cloudpss/env 0.6.14 → 0.6.16
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 +11 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,17 @@ Get/set urls for cloudpss from `process.env` (also `document.baseURI` or `locati
|
|
|
4
4
|
|
|
5
5
|
All urls WILL NOT ends with '/', even if you set them with trailing '/'.
|
|
6
6
|
|
|
7
|
+
## Example
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import cloudpssEnv from '@cloudpss/env';
|
|
11
|
+
|
|
12
|
+
console.log(cloudpssEnv.API_URL);
|
|
13
|
+
console.log(cloudpssEnv.GQL_URL);
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## API
|
|
17
|
+
|
|
7
18
|
- `HOME_URL`: `process.env.CLOUDPSS_HOME_URL`
|
|
8
19
|
Home page url of cloudpss, defaults to `"https://cloudpss.net"`.
|
|
9
20
|
- `GQL_URL`: `process.env.CLOUDPSS_GQL_URL`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudpss/env",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
4
4
|
"author": "CloudPSS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"exports": "./dist/index.js",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@types/node": "^25.0.
|
|
12
|
+
"@types/node": "^25.0.10"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "pnpm clean && tsc --build --force",
|