Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS protocol at dev #310

Closed
franklinjavier opened this issue Sep 7, 2018 · 6 comments
Closed

HTTPS protocol at dev #310

franklinjavier opened this issue Sep 7, 2018 · 6 comments
Labels
bug Something isn't working

Comments

@franklinjavier
Copy link

Bug Report

Starting dev with https protocol instead http

To Reproduce

  1. yarn docz dev
DONE  Compiled successfully in 200ms                                                                                                                                        
Your application is running at https://localhost:3000
@robhowell
Copy link

I was just trying out docz and had this issue too - it looked like the build was successful, but when I went to the URL that it provided () I saw the following generic error message provided by Google Chrome:

This site can’t be reached
localhost unexpectedly closed the connection.

It was only when I found this issue on GitHub that I realised that the non HTTPS version of the URL actually works.

@robhowell
Copy link

@franklinjavier Btw, here is a short term fix to switch to http and show the correct URL in the console:

Create a doczrc.js file in the root of your project with the following contents:

const config = {
  protocol: 'http'
};

module.exports = config;

By default it seems to be running the http version but outputting the URL for https - setting http makes them both use http.

I've tried manually setting https in that config file too, but didn't have any success.

@mpivaa
Copy link
Contributor

mpivaa commented Sep 10, 2018

I've submitted a PR(#321) to fix this issue

@julioxavierr
Copy link

Can we close this?

@pedronauck
Copy link
Member

For sure, I'll release some version soon with this fixed!

@robhowell
Copy link

@mpivaa Thanks for making the PR to fix this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants