Options (3)
-C, --corsbooleanStart an HTTP server with CORS enabled by including the `Access-Control-Allow-Origin: *` header in all responses
serve {{[-C|--cors]}}-s, --singlebooleanStart an HTTP server on the default port rewriting all not-found requests to the `index.html` file
serve {{[-s|--single]}}-c, --configbooleanStart an HTTP server on the default port using a specific configuration file
serve {{[-c|--config]}} {{path/to/serve.json}}Examples (7)
Start an HTTP server listening on the default port to serve the current directory
Start an HTTP server on a specific [p]ort to serve a specific directory
Start an HTTP server with CORS enabled by including the `Access-Control-Allow-Origin: *` header in all responses
serve [-C|--cors]Start an HTTP server on the default port rewriting all not-found requests to the `index.html` file
serve [-s|--single]Start an HTTPS server on the default port using the specified certificate
serve --ssl-cert path/to/cert.pem --ssl-key path/to/key.pemStart an HTTP server on the default port using a specific configuration file
serve [-c|--config] path/to/serve.jsonDisplay help
serve --help