Or just deploy to Netlify as a deploy preview – you can even just password protect it using basic auth access control (independent of Auth0) – and test from phone there. Note not on all plans.
I personally use ngrok with a custom domain to port forward and tunnel most often.
Method number 1 doesn’t work on mobile phone as I can’t access the server by entering http://localhost:8910 into the URL in my phone to access the local server, I have to use http://local-server-ip-address:8910/ to access, which immediately I receive error from Auth0 mentioning https is required.
I’m using method number 2 now, but due to my slow internet connection and also my location (Malysia) to the ngrok server (US) which adds delays into every minor update performed during my local development.
Method 3 will pull the production environment in Netlify into local development environment, which is not suitable for development.
Method number 4 which deploy to Netlify as a deploy preview takes too long to deploy every minor changes (e.g. how a change of a button looks on my mobile phone).
Hence I’m enquiring how to enable https in webpack devServer or is it possible to do so? Because I see webpack documentation stating webpack is supporting https for devServer, and there is a section of Webpack Configuration in redwood documentation. So I’m curios which part of my config is done wrong for setting up https on devServer…
If you simply want a mobile responsive preview, have you considered just to use Chrome dev tools and set the view to be responsive and the screen dimensions to be your mobile device?
I use this app called Responsively - it’s open source and free to use. It’s a browser designed for responsive development. It’s great for developing your app against many different screen sizes. Using chome dev tools also works well enough.
Unless you are using the onboard hardware, there are very few reasons to actually test on a device