serve Command Examples

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

serve

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

serve {{[-C|--cors]}}

serve {{[-s|--single]}}

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

serve {{[-c|--config]}} {{path/to/serve.json}}

serve --help