mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
to enable custom port (#782)
* to enable custom port current validator doesn't enable port config, with this patch would have allow the config, however this doesn't include the runner changes... runner might need changes too. * Update config.schema.json * Update config.validator.ts
This commit is contained in:
@@ -31,7 +31,8 @@ const getTauriConfig = (cfg: Partial<TauriConfig>): TauriConfig => {
|
||||
ctx: {},
|
||||
tauri: {
|
||||
embeddedServer: {
|
||||
active: true
|
||||
active: true,
|
||||
port: "3000"
|
||||
},
|
||||
bundle: {
|
||||
active: true,
|
||||
|
||||
@@ -399,6 +399,10 @@
|
||||
"active": {
|
||||
"description": "whether we should use the embedded-server or the no-server mode",
|
||||
"type": "boolean"
|
||||
},
|
||||
"port": {
|
||||
"description": "enable custom port, instead of using random port",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -486,4 +490,4 @@
|
||||
"tauri"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,6 +223,7 @@ export interface TauriConfig {
|
||||
* whether we should use the embedded-server or the no-server mode
|
||||
*/
|
||||
active?: boolean
|
||||
port?: string
|
||||
}
|
||||
/**
|
||||
* tauri bundler configuration
|
||||
|
||||
@@ -409,6 +409,10 @@ export const TauriConfigSchema = {
|
||||
"active": {
|
||||
"description": "whether we should use the embedded-server or the no-server mode",
|
||||
"type": "boolean"
|
||||
},
|
||||
"port": {
|
||||
"description": "enable custom port, instead of using random port",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
||||
Reference in New Issue
Block a user