Implement HTTPS for Development (localhost)
See original GitHub issueFeature request
Is your feature request related to a problem? Please describe.
I would like to be able to easily use HTTPS on my localhost
Describe the solution you’d like
Be able to change the dev
script like so:
-"dev": "next",
+"dev": "HTTPS=true next",
Additional context
CRA and Gatsby both handle this. Gatsby uses devcert
.
https://www.gatsbyjs.org/docs/local-https/ https://create-react-app.dev/docs/using-https-in-development/
Issue Analytics
- State:
- Created 4 years ago
- Reactions:23
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Using HTTPS in Your Development Environment - Auth0
Learn why you should use HTTPS even for development and how to set up your localhost with that secure protocol.
Read more >How to develop over HTTPS on localhost - mjswensen.com
Step 1: Generate a self-signed SSL certificate · Step 2: Install and trust the certificate · Step 3: Configure your development server to...
Read more >How to Get SSL HTTPS for Localhost - Section.io
Steps to follow · Create a certificate. · Sign an SSL certificate for localhost. · Develop a server using Node. · Configure the...
Read more >How to get HTTPS working on your local development ...
Use your new SSL certificate. You're now ready to secure your localhost with HTTPS. Move the server.key and server.crt files ...
Read more >How to create a https server on localhost - ssl - Stack Overflow
9 Answers 9 · Run your server. Nodejs or what you usually use. · If you are still in the same directory as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@timneutkens its ok for me no need to talk about that vercel is dead for me. I will do a little youtube video about that and then forget it and call it a day.
Is there any plan to follow with this issue? It would be great to have this feature natively baked in in the nextjs.config instead creating custom Node server like in the mentioned example