Next.js Discord

Discord Forum

next dev forces https?

Answered
Arcra posted this in #help-forum
Open in Discord
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

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