You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -136,3 +140,26 @@ function closeServerOnTermination (server) {
136
140
})
137
141
})
138
142
}
143
+
144
+
exportdefaultserve
145
+
146
+
/**
147
+
* @typedef {Object} ServeOptions
148
+
* @property {boolean} [open=false] Launch in browser (default: `false`)
149
+
* @property {string} [openPage=''] Page to navigate to when opening the browser. Will not do anything if `open` is `false`. Remember to start with a slash e.g. `'/different/page'`
150
+
* @property {boolean} [verbose=true] Show server address in console (default: `true`)
151
+
* @property {string|string[]} [contentBase=''] Folder(s) to serve files from
152
+
* @property {string|boolean} [historyApiFallback] Path to fallback page. Set to `true` to return index.html (200) instead of error page (404)
153
+
* @property {string} [host='localhost'] Server host (default: `'localhost'`)
154
+
* @property {number} [port=10001] Server port (default: `10001`)
155
+
* @property {ServeOptionsHttps} [https=false] By default server will be served over HTTP (https: `false`). It can optionally be served over HTTPS
156
+
* @property {{[header:string]: string}} [headers] Set headers
0 commit comments