How to use the devcert.configuredDomains function in devcert

To help you get started, weā€™ve selected a few devcert examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Jordaneisenburger / fallback-studio / src / pwa-studio / packages / pwa-buildpack / lib / Utilities / configureHost.js View on Github external
const alreadyProvisioned = hostname => {
    const configuredDomains = devcert.configuredDomains();
    debug(
        'checking for %s in devcert.configuredDomains() === %o',
        hostname,
        configuredDomains
    );
    const isProvisioned = configuredDomains.includes(hostname);
    debug('isProvisioned? %s', isProvisioned);
    return isProvisioned;
};

devcert

Generate trusted local SSL/TLS certificates for local SSL development

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis