Next.js Discord

Discord Forum

next dev forces https?

Answered
Arcra posted this in #help-forum
Open in Discord
Avatar
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?
Answered by Arcra
it was dnsmasq problem, solved by using /etc/hosts
View full answer

8 Replies

Avatar
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/)
Avatar
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 automatically
even 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
Avatar
I guess I can't help you more
Avatar
okay but thanks for helping
Avatar
it was dnsmasq problem, solved by using /etc/hosts
Answer