@static-suite/static-suite-data-server 0.0.2 → 0.0.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 +4 -2
- package/dist/http/README.md +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,10 +31,12 @@ There are three main use cases:
|
|
|
31
31
|
|
|
32
32
|
### SSG develop/build phase
|
|
33
33
|
|
|
34
|
-
Require `dist/lib
|
|
34
|
+
Require `dataServer` from `@static-suite/static-suite-data-server/dist/lib/` inside the SSG, and call its `init()` function:
|
|
35
35
|
|
|
36
36
|
```javascript
|
|
37
|
-
const {
|
|
37
|
+
const {
|
|
38
|
+
dataServer,
|
|
39
|
+
} = require('@static-suite/static-suite-data-server/dist/lib/');
|
|
38
40
|
|
|
39
41
|
// Init Data Server.
|
|
40
42
|
const { store } = dataServer.init({ dataDir: '../data/prod' });
|
package/dist/http/README.md
CHANGED
|
@@ -31,10 +31,12 @@ There are three main use cases:
|
|
|
31
31
|
|
|
32
32
|
### SSG develop/build phase
|
|
33
33
|
|
|
34
|
-
Require `dist/lib
|
|
34
|
+
Require `dataServer` from `@static-suite/static-suite-data-server/dist/lib/` inside the SSG, and call its `init()` function:
|
|
35
35
|
|
|
36
36
|
```javascript
|
|
37
|
-
const {
|
|
37
|
+
const {
|
|
38
|
+
dataServer,
|
|
39
|
+
} = require('@static-suite/static-suite-data-server/dist/lib/');
|
|
38
40
|
|
|
39
41
|
// Init Data Server.
|
|
40
42
|
const { store } = dataServer.init({ dataDir: '../data/prod' });
|
package/package.json
CHANGED