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

feat(vite): server executor https prop as object #18048

Merged
merged 1 commit into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/generated/packages/vite/executors/dev-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
"description": "Specify which IP addresses the server should listen on.",
"oneOf": [{ "type": "boolean" }, { "type": "string" }]
},
"https": { "type": "boolean", "description": "Serve using HTTPS." },
"https": {
"oneOf": [{ "type": "boolean" }, { "type": "object" }],
"description": "Serve using HTTPS. https://vitejs.dev/config/server-options.html#server-https"
},
"hmr": {
"description": "Enable hot module replacement. For more options, use the 'hmr' option in the Vite configuration file.",
"type": "boolean"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
"description": "Specify which IP addresses the server should listen on.",
"oneOf": [{ "type": "boolean" }, { "type": "string" }]
},
"https": { "type": "boolean", "description": "Serve using HTTPS." },
"https": {
"oneOf": [{ "type": "boolean" }, { "type": "object" }],
"description": "Serve using HTTPS. https://vitejs.dev/config/server-options.html#server-https"
},
"open": {
"description": "Automatically open the app in the browser on server start. When the value is a string, it will be used as the URL's pathname.",
"oneOf": [{ "type": "boolean" }, { "type": "string" }]
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/executors/dev-server/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface ViteDevServerExecutorOptions {
proxyConfig?: string;
port?: number;
host?: string | boolean;
https?: boolean;
https?: boolean | Json;
hmr?: boolean;
open?: string | boolean;
cors?: boolean;
Expand Down
11 changes: 9 additions & 2 deletions packages/vite/src/executors/dev-server/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@
]
},
"https": {
"type": "boolean",
"description": "Serve using HTTPS."
"oneOf": [
{
"type": "boolean"
},
{
"type": "object"
}
],
"description": "Serve using HTTPS. https://vitejs.dev/config/server-options.html#server-https"
},
"hmr": {
"description": "Enable hot module replacement. For more options, use the 'hmr' option in the Vite configuration file.",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/executors/preview-server/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export interface VitePreviewServerExecutorOptions {
proxyConfig?: string;
port?: number;
host?: string | boolean;
https?: boolean;
https?: boolean | Json;
open?: string | boolean;
logLevel?: 'info' | 'warn' | 'error' | 'silent';
mode?: string;
Expand Down
11 changes: 9 additions & 2 deletions packages/vite/src/executors/preview-server/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,15 @@
]
},
"https": {
"type": "boolean",
"description": "Serve using HTTPS."
"oneOf": [
{
"type": "boolean"
},
{
"type": "object"
}
],
"description": "Serve using HTTPS. https://vitejs.dev/config/server-options.html#server-https"
},
"open": {
"description": "Automatically open the app in the browser on server start. When the value is a string, it will be used as the URL's pathname.",
Expand Down