Support --https
for gatsby serve
#38529
Unanswered
techfg
asked this question in
Ideas / Feature Requests
Replies: 2 comments
-
I would love this myself. I would be happy to contribute the code for this if others would be receptive to this going in. This would be nice to have with the Gatsby cli as the express integration is pretty out of date. With this enhancement it will make it easier to run Gatsby inside of Kubernetes. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Opened up a RFC at #38690 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
gatsby develop
supports the--https
option, whereasgatsby serve
does not. Often times, being able to test a "production" build with HTTPS is critical (e.g., testing security headers).Approach
Add parameters to
serve
command and modify serve.js to follow similargetSslCert
approach thatdevelop
process does, creating an httpsServer to listen.Thoughts/input welcome!
Beta Was this translation helpful? Give feedback.
All reactions