examples/https-ssl-certificates/README.md
npm start -- --secure
Snowpack provides an easy way to use a local HTTPS server during development through the use of the --secure flag.
When enabled, Snowpack will create an HTTPS server with HTTP2 support enabled using either:
snowpack.key and snowpack.crt file in the root directory of your sitedevOptions.secure.cert and devOptions.secure.key in the Snowpack configuration.You can automatically generate credentials for your project via either:
npx devcert-cli generate localhostmkcert -install && mkcert -key-file snowpack.key -cert-file snowpack.crt localhostIn most situations you should add personally generated certificate files (snowpack.key and snowpack.crt) to your .gitignore file.