package
A Vite plugin to generate untrusted certificates for HTTPS dev servers
npm install @vitejs/plugin-basic-sslGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
608.0 kB
Includes dependencies.
A plugin to generate untrusted certificates which still allows to access the page after proceeding a wall with warning.
In most scenarios, it is recommended to generate a secure trusted certificate instead and use it to configure server.https
// vite.config.js
import basicSsl from '@vitejs/plugin-basic-ssl'
export default {
plugins: [
basicSsl({
/** name of certification */
name: 'test',
/** custom trust domains */
domains: ['*.custom.com'],
/** optional, days before certificate expires */
ttlDays: 30,
/** custom certification directory */
certDir: '/Users/.../.devServer/cert',
}),
],
}MIT
vitebot
vite@voidzero.dev