-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Support custom domains #22
Conversation
It'd be nice to have this feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The general idea sounds fine to me besides some comments below. We'd also need documentation for the new options though.
@bluwy Thank you for reviewing, modifications are done. |
The options are quite simple, so I just update readme and add some comments on the options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should remove getCertificate
from the public API? I don't know why we are exposing that, and we could directly pass the options as an object to it then.
I guess getCertificate function is exported for testing? |
It isn't used in the tests, no? |
Update: Sorry, my bad. I mixed up the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! Thanks for making the changes. My only question I guess is maybe we should rename certDir
to cacheDir
. Since certDir
could mean the directory if you generated the certificates yourself and we respect that (which we don't). But not too concerned of the naming either since it's a low maintenance package.
About the getCertificate
, perhaps we can remove that in the next major if we want to.
Let's release a minor then to have this feature and respect user defined settings too from the other PR. @bluwy, would you expand on
I didn't get that, |
|
Ah, I see. |
This PR introduces the following features:
Can be easily set by:
Some essential options can make our local development more comfortable. In Chrome, there will not be unfriendly security warnings.