How can I use Https in dev without losing Nextjs goodies #12799
-
In my use case, I need https for the webcam (getUserMedia()). I know it's possible using a custom server.js But the docs say:
I've also read in some issues that Vercel will not include https in the core. I don't think I fully understand the implications of creating my own server.js, maybe you can help me with this. I'm moving in from CRA and Preact which both make it simple to use https with a flag. Would it be unreasonable to ask Vercel to add a configuration option in which I can pass a certificate? It seems to me that getUserMedia() is part of the modern web and it's very limiting not to be able to test it. Something like this : "scripts": {
"dev": "next -https path/to/my/cert"
} I'm open to any other suggestions, I just need to use the camera and test it in dev. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I was able to getUserMedia() without https ! |
Beta Was this translation helpful? Give feedback.
I was able to getUserMedia() without https !
disregard