Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Run dev as HTTPS #128

@jmakeig

Description

@jmakeig

Pages behave differently in subtle ways when you serve them over HTTPS versus HTTP. Because most apps will eventually be deployed as HTTPS, it’s helpful to configure all of your development and test environments with HTTPS as well.

This is all possible today. However, it requires an extra lift to generate keys and an even a potentially more complicated process to get self-signed keys to be automatically trusted by the browser. There are several ways to do this with various not-so-attractive tradeoffs.

I’ve got a PoC working on my local development environment of the fewest moving parts that I’ve come across. It uses mkcert to generate keys for localhost (or any other hostname) using a trusted certificate authority that it also creates. It’s not yet production ready because it relies on a prerelease version of livereload to open the WebSocket over HTTPS as well.

This issue is mostly to judge whether there’s interest in this. If so, I could put together a PR, and probably queue that up for after [email protected] is released.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions