serve Command Examples

Static file serving and directory listing. More information: https://github.com/vercel/serve.

serve

serve -p {{port}} {{path/to/directory}}

serve --cors

serve --single

serve --ssl-cert {{path/to/cert.pem}} --ssl-key {{path/to/key.pem}}

serve --config {{path/to/serve.json}}

serve --help