https: mode (devcert) fails with Error: "localhost" is not a valid domain name
#35892
Closed
2 tasks done
Labels
type: bug
An issue or pull request relating to a bug in Gatsby
type: upstream
Issues outside of Gatsby's control, caused by dependencies
Preliminary Checks
Description
On Gatsby 4.15 and 4.16 using a minimal starter with
npm init gatsby
runninggatsby develop -S
fails to generate a certificate with devcertThis has happened in the past due to a change in the regex devcert uses: #25064
reproduction is literally just the typescript starter with gatsby updated to 4.16.0
Reproduction Link
https://github.com/grgcnnr/gatsby-devcert-minimal
Steps to Reproduce
npm i
npm run develop -- -S
...
Expected Result
Gatsby should generate a self-signed certificate and boot the dev server with HTTPS
Actual Result
devcert throws a fatal error
"Error: "localhost" is not a valid domain name."
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: