sleepy-serv 0.2.0 → 0.2.1
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 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -221,6 +221,16 @@ At the time of this writing, `meta.js` only exports middleware functions.
|
|
|
221
221
|
|
|
222
222
|
## `createApp()` Options
|
|
223
223
|
|
|
224
|
+
### `hostname`
|
|
225
|
+
|
|
226
|
+
The hostname can be customized like so:
|
|
227
|
+
|
|
228
|
+
```js
|
|
229
|
+
createApp(import.meta.dirname, {
|
|
230
|
+
hostname: 'test.sleepy-serv.com',
|
|
231
|
+
})
|
|
232
|
+
```
|
|
233
|
+
|
|
224
234
|
### `mountPath`
|
|
225
235
|
|
|
226
236
|
This adds a prefix to all routes. For example:
|
package/package.json
CHANGED