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

How to use custom domain and HTTPS? #171

Open
oncet opened this issue Jun 6, 2022 · 0 comments
Open

How to use custom domain and HTTPS? #171

oncet opened this issue Jun 6, 2022 · 0 comments

Comments

@oncet
Copy link

oncet commented Jun 6, 2022

I'm trying to serve a CRA which uses a custom domain and HTTPS through an .env file:

HOST=myapp.localhost
HTTPS=true

When running npm start it opens up in the browser at https://myapp.localhost but when running npx serve -s build it opens up at the standard http://localhost:5000, is there any way to get the same behaviour as with npm start when using serve?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant