-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
fix: --https is invalid in preview #4318
Conversation
I think this would be a feature request 🤔 |
@Shinigami92 Sorry, maybe I didn't describe the pr clearly. The main solution of this pr is that the vite/packages/vite/src/node/cli.ts Line 191 in decc7d8
#4169 This issue reports two bugs, I think the serve |
The |
Normally preview uses |
According to the current design, |
@OneNail if |
I also have the exact use case as @husayt. I am using lib mode of vite to build react component library. I use vite builder for storybook - storybook-builder-vite. And there isn't much to preview the contents of |
The |
You can consider opening a pr or issue for this feature. |
Description
fix #4169
--https
is invalid invite preview
.console:
The protocol of the url is
http
, and the url with httpshttps://localhost:5000
cannot be opened.Additional context
options.https
is not passed intoresolveConfig
vite/packages/vite/src/node/cli.ts
Lines 206 to 215 in decc7d8
but subsequent execution depends on
config.server.https
vite/packages/vite/src/node/preview.ts
Line 56 in decc7d8
vite/packages/vite/src/node/server/http.ts
Lines 32 to 35 in decc7d8
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).