in Next.js, wow to start the development mode with CLI (next dev) over https localhost?
What parameters should I pass to "next dev" command, which can be edited in package.json?
I don't want to write the custom https server for development.
Thank you.
edit - January 2024: It looks like there’s an experimental flag that supports local HTTPS development! https://x.com/leeerob/status/1743709145386131906?s=46&t=0R3aF2_pSTqUMFxVSB7eLQ
edit - August 2024: A gif of it in action: https://x.com/asidorenko_/status/1829132672720830559
———
Old Answer:
This might not help you if you're trying to do local development with the Facebook API, but there's a discussion comment in the Next.js repo which suggests that you can use local-ssl-proxy to do SSL local dev.
https://github.com/vercel/next.js/discussions/10935#discussioncomment-144885
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With