next dev forces https?
Answered
Arcra posted this in #help-forum
ArcraOP
I started a dev server with
next dev -H console.entropi.dev
. When I connect to http://console.entropi.dev:3000, it automatically redirects to https://console.entropi.dev:3000 and I can't see the page. If I use --experimental-https
, the connection is not secure and chrome says the website uses HSTS so I can't connect. how do I turn off HSTS?8 Replies
you can run the command like
next dev
and then you will start a normal dev server. If you need a secure and valid https connection, you can use free services like [ngrok](https://ngrok.com/)ArcraOP
I mean I started the dev server on
console.entropi.dev
which is pointing 127.0.0.1 (localhost), configured with dnsmasq address=/.entropi.dev/127.0.0.1
. when I connect to console.entropi.dev
, chrome redirects to https automaticallyeven if i put http://console.entropi.dev, it is redirecting.
I do not need external access, it is for better dx. I don't want to remember and put the port of every services.
@B33fb0n3
I guess I can't help you more
ArcraOP
okay but thanks for helping
ArcraOP
it was dnsmasq problem, solved by using /etc/hosts
Answer