
serve
List of commands for serve:
-
serve:tldr:044a0 serve: Start an HTTPS server on the default port using the specified certificate.$ serve --ssl-cert ${path-to-cert-pem} --ssl-key ${path-to-key-pem}try on your machineexplain this command
-
serve:tldr:08485 serve: Start an HTTP server on the default port using a specific configuration file.$ serve --config ${path-to-serve-json}try on your machineexplain this command
-
serve:tldr:20cc3 serve: Start an HTTP server listening on the default port to serve the current directory.$ servetry on your machineexplain this command
-
serve:tldr:82b34 serve: Start an HTTP server on a specific [p]ort to serve a specific directory.$ serve -p ${port} ${path-to-directory}try on your machineexplain this command
-
serve:tldr:970a3 serve: Start an HTTP server with CORS enabled by including the `Access-Control-Allow-Origin: *` header in all responses.$ serve --corstry on your machineexplain this command
-
serve:tldr:dad09 serve: Start an HTTP server on the default port rewriting all not-found requests to the `index.html` file.$ serve --singletry on your machineexplain this command